forked from StrafesNET/strafe-project
version typo
This commit is contained in:
parent
79c12b1af1
commit
08269a2d3f
@ -1,4 +1,4 @@
|
|||||||
pub mod v1;
|
pub mod v0;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
10
src/tests.rs
10
src/tests.rs
@ -1,10 +1,10 @@
|
|||||||
use crate::v1::TimedBlockId;
|
use crate::v0::TimedBlockId;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn _1()->Result<(),crate::v1::Error>{
|
fn _1()->Result<(),crate::v0::Error>{
|
||||||
let file=std::fs::File::open("files/bhop_marble_7cf33a64-7120-4514-b9fa-4fe29d9523d").unwrap();
|
let file=std::fs::File::open("files/bhop_marble_7cf33a64-7120-4514-b9fa-4fe29d9523d").unwrap();
|
||||||
let input=std::io::BufReader::new(file);
|
let input=std::io::BufReader::new(file);
|
||||||
let mut bot_file=crate::v1::File::new(input).unwrap();
|
let mut bot_file=crate::v0::File::new(input).unwrap();
|
||||||
println!("header={:?}",bot_file.header);
|
println!("header={:?}",bot_file.header);
|
||||||
for &TimedBlockId{time,block_id} in &bot_file.header.offline_blocks_timeline{
|
for &TimedBlockId{time,block_id} in &bot_file.header.offline_blocks_timeline{
|
||||||
println!("offline time={} block_id={:?}",time,block_id);
|
println!("offline time={} block_id={:?}",time,block_id);
|
||||||
@ -25,13 +25,13 @@ fn _1()->Result<(),crate::v1::Error>{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn _2()->Result<(),crate::v1::Error>{
|
fn _2()->Result<(),crate::v0::Error>{
|
||||||
let file=std::fs::File::open("files/bhop_marble_7cf33a64-7120-4514-b9fa-4fe29d9523d").unwrap();
|
let file=std::fs::File::open("files/bhop_marble_7cf33a64-7120-4514-b9fa-4fe29d9523d").unwrap();
|
||||||
let input=std::io::BufReader::new(file);
|
let input=std::io::BufReader::new(file);
|
||||||
|
|
||||||
let t0=std::time::Instant::now();
|
let t0=std::time::Instant::now();
|
||||||
|
|
||||||
let mut bot_file=crate::v1::File::new(input).unwrap();
|
let mut bot_file=crate::v0::File::new(input).unwrap();
|
||||||
|
|
||||||
let block=bot_file.read_all()?;
|
let block=bot_file.read_all()?;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user