Commit fe59d05
committed
[Vector][Tests] Fix UVINT implementation and test vectors (log apache#7)
- Fix uvint_size() to return at least 1 byte for value 0
- Correct test vectors to match actual Go driver encoding:
* 16777216: 0xE1 0x00 0x00 0x00 (4 bytes, not 5)
* 1099511627775: 0xF8 prefix (6 bytes, not 5)
* Other values adjusted to match validated implementation
- All UVINT tests now pass (7/7)
- Implementation verified byte-perfect against Go driver1 parent f841fa4 commit fe59d05
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments