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

handle protocol v23 string tables

This commit is contained in:
Robin Appelman 2021-07-23 16:55:06 +02:00
commit 185ff6365f
13 changed files with 155 additions and 90 deletions

View file

@ -101,14 +101,20 @@ fn re_encode_test(input_file: &str) {
.props
.iter()
.map(|prop| {
(prop_names.get(&prop.index).unwrap(), prop.value.clone())
(
prop_names.get(&prop.identifier).unwrap(),
prop.value.clone(),
)
})
.collect::<Vec<_>>();
let re_props = re_ent
.props
.iter()
.map(|prop| {
(prop_names.get(&prop.index).unwrap(), prop.value.clone())
(
prop_names.get(&prop.identifier).unwrap(),
prop.value.clone(),
)
})
.collect::<Vec<_>>();
pretty_assertions::assert_eq!(props, re_props);