test read_all
This commit is contained in:
parent
38d106d008
commit
5177061ae5
11
src/tests.rs
11
src/tests.rs
@ -23,3 +23,14 @@ fn _1()->Result<(),crate::v1::Error>{
|
|||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn _2()->Result<(),crate::v1::Error>{
|
||||||
|
let file=std::fs::File::open("files/bhop_marble_7cf33a64-7120-4514-b9fa-4fe29d9523d").unwrap();
|
||||||
|
let input=std::io::BufReader::new(file);
|
||||||
|
let mut bot_file=crate::v1::File::new(input).unwrap();
|
||||||
|
|
||||||
|
let block=bot_file.read_all()?;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user