another failing test
This commit is contained in:
BIN
files/03f3eb2c-d33d-44ea-ba60-67b685d1140d.qbot
LFS
Normal file
BIN
files/03f3eb2c-d33d-44ea-ba60-67b685d1140d.qbot
LFS
Normal file
Binary file not shown.
@@ -33,3 +33,18 @@ fn get_position_no_panic(){
|
||||
// This can panic if the head is mismanaged!
|
||||
let _pos=head.get_position(&bot,SessionTime::ZERO);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn get_position_no_panic2(){
|
||||
let bot_file=include_bytes!("../../files/03f3eb2c-d33d-44ea-ba60-67b685d1140d.qbot");
|
||||
let timelines=v0::read_all_to_block(std::io::Cursor::new(bot_file)).unwrap();
|
||||
let bot=bot::CompleteBot::new(timelines);
|
||||
println!("duration={}",bot.duration());
|
||||
println!("num_events={}",bot.timelines().output_events.len());
|
||||
for event in &bot.timelines().output_events{
|
||||
println!("time={}",event.time);
|
||||
}
|
||||
let head=head::PlaybackHead::new(&bot,SessionTime::ZERO);
|
||||
// This can panic if the head is mismanaged!
|
||||
let _pos=head.get_position(&bot,SessionTime::ZERO);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user