Commit 7bba163
Claude
test(integration): use valid hex hashes and non-empty Merkle leaves
The integration suite (newly runnable now that it builds against the core
package instead of the never-building ochrance-fs) had 5 failures, all from
invalid test data rather than code defects:
- Hashes like "hash_0"/"wrong_hash"/"correct_0" are not hex, so
validateManifest correctly rejected them (tests 02, 03, 23) and the lexer
could not form a HASH token on round-trip (test 41). Use hex digests.
- test 46 built a Merkle tree from two emptyHash leaves; with the XOR
placeholder combiner, xor 0 0 = 0, so the root was (correctly) empty while
the test expected non-empty. Use distinct non-empty leaves.
Verified: integration tests now 55/55; A2ML 16/16; property 47/47.1 parent 5da1afe commit 7bba163
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
| 179 | + | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
| |||
0 commit comments