Fix test failures: correct EBML size assertion, fix doc tests

- Fix write_size test: 127 encodes as [0x40, 0x7F] not [0xC0, 0x7F]
- Mark doc examples as ignore (use incomplete pseudo-code)
This commit is contained in:
MattJackson
2026-04-10 08:23:32 -07:00
parent c14b319212
commit 48d70c092c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -234,7 +234,7 @@ mod tests {
buf.clear();
write_size(&mut buf, 127).unwrap();
assert_eq!(buf, [0xC0, 127]); // 127 >= 0x7F, uses 2 bytes
assert_eq!(buf, [0x40, 127]); // 127 >= 0x7F, uses 2 bytes: (0>>8)|0x40, 127
buf.clear();
write_size(&mut buf, 126).unwrap();