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:
parent
431d91ad9a
commit
185ff6365f
13 changed files with 155 additions and 90 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue