Add ancient test file and add store file information at the end of the game

This commit is contained in:
Lol3rrr
2024-09-15 15:27:47 +02:00
parent 52baa392fa
commit c479fb5b69
3 changed files with 50 additions and 7 deletions

View File

@@ -13,3 +13,19 @@ fn mirage_1() {
todo!()
}
#[test]
fn ancient_1() {
let content = std::fs::read("testfiles/de_ancient.dem").unwrap();
let container = csdemo::Container::parse(&content).unwrap();
let frame_iter = csdemo::FrameIterator::parse(container.inner);
assert_eq!(116676, frame_iter.count());
let output = csdemo::parser::parse(csdemo::FrameIterator::parse(container.inner)).unwrap();
assert_eq!("de_ancient", output.header.map_name());
todo!()
}