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

entity write fixes

This commit is contained in:
Robin Appelman 2021-07-20 19:27:24 +02:00
commit 577a998baa
17 changed files with 129 additions and 35 deletions

View file

@ -65,12 +65,12 @@ fn test_roundtrip_encode<
};
let mut read = BitReadStream::new(BitReadBuffer::new_owned(data, LittleEndian));
assert_eq!(
pretty_assertions::assert_eq!(
val,
T::parse(&mut read, state).unwrap(),
"Failed to assert the parsed message is equal to the original"
);
assert_eq!(
pretty_assertions::assert_eq!(
pos,
read.pos(),
"Failed to assert that all encoded bits ({}) are used for decoding ({})",