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