rename ext2.bin
to ext2.img
This commit is contained in:
parent
e456764a20
commit
5cfa684c03
|
@ -211,13 +211,13 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn file_len() {
|
||||
let file = RefCell::new(File::open("ext2.bin").unwrap());
|
||||
let file = RefCell::new(File::open("ext2.img").unwrap());
|
||||
assert_eq!(unsafe { file.slice_unchecked(1024..2048).len() }, 1024);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn file() {
|
||||
let file = RefCell::new(File::open("ext2.bin").unwrap());
|
||||
let file = RefCell::new(File::open("ext2.img").unwrap());
|
||||
let fs = Ext2::new(file);
|
||||
|
||||
assert!(
|
||||
|
@ -235,7 +235,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn inodes() {
|
||||
let file = RefCell::new(File::open("ext2.bin").unwrap());
|
||||
let file = RefCell::new(File::open("ext2.img").unwrap());
|
||||
let fs = Ext2::new(file);
|
||||
|
||||
assert!(
|
||||
|
|
|
@ -313,7 +313,7 @@ mod tests {
|
|||
use std::cell::RefCell;
|
||||
use std::fs::File;
|
||||
|
||||
let file = RefCell::new(File::open("ext2.bin").unwrap());
|
||||
let file = RefCell::new(File::open("ext2.img").unwrap());
|
||||
let superblock = unsafe { Superblock::find(&file) };
|
||||
assert!(
|
||||
superblock.is_ok(),
|
||||
|
|
Reference in a new issue