mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
more tests
This commit is contained in:
parent
f0bb2af3ca
commit
431d91ad9a
2 changed files with 2 additions and 2 deletions
|
|
@ -560,7 +560,7 @@ fn test_packet_entitier_message_roundtrip() {
|
||||||
value: SendPropValue::Integer(4),
|
value: SendPropValue::Integer(4),
|
||||||
},
|
},
|
||||||
SendProp {
|
SendProp {
|
||||||
index: 3,
|
index: 2,
|
||||||
identifier: SendPropIdentifier::new("table2", "prop3"),
|
identifier: SendPropIdentifier::new("table2", "prop3"),
|
||||||
value: SendPropValue::Float(1.0),
|
value: SendPropValue::Float(1.0),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ impl EntityDump {
|
||||||
.props
|
.props
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|prop| {
|
.map(|prop| {
|
||||||
let (table_name, prop_name) = &prop_names[&prop.index];
|
let (table_name, prop_name) = &prop_names[&prop.identifier];
|
||||||
(format!("{}.{}", table_name, prop_name), prop.value)
|
(format!("{}.{}", table_name, prop_name), prop.value)
|
||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue