another failing test

This commit is contained in:
2026-03-18 09:29:16 -07:00
parent a3254776ef
commit 96e9ebd22d
2 changed files with 18 additions and 0 deletions

Binary file not shown.

View File

@@ -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);
}