1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

ignore empty text messages

This commit is contained in:
Robin Appelman 2021-06-03 23:41:31 +02:00
commit c2fe8eca07
4 changed files with 14 additions and 0 deletions

View file

@ -12,6 +12,7 @@ use tf_demo_parser::{Demo, DemoParser, MatchState};
#[test_case("data/nousers.dem", "data/nousers.json"; "nousers.dem")]
#[test_case("data/decal.dem", "data/decal.json"; "decal.dem")]
#[test_case("data/saytext2.dem", "data/saytext2.json"; "saytext2.dem")]
#[test_case("data/emptysaytext.dem", "data/emptysaytext.json"; "emptysaytext.dem")]
fn snapshot_test(input_file: &str, snapshot_file: &str) {
let file = fs::read(input_file).expect("Unable to read file");
let demo = Demo::new(&file);