Skip to content

Commit a22ce17

Browse files
committed
test all the bytes of leaf_length and node_offset
1 parent 5ec97e3 commit a22ce17

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -594,16 +594,16 @@ mod test {
594594
.personal(b"bing")
595595
.fanout(2)
596596
.max_depth(3)
597-
.max_leaf_length(4)
598-
.node_offset(5)
599-
.node_depth(6)
600-
.inner_hash_length(7)
597+
.max_leaf_length(0x04050607)
598+
.node_offset(0x08090a0b0c0d0e0f)
599+
.node_depth(16)
600+
.inner_hash_length(17)
601601
.last_node(true)
602602
.build()
603603
.update(b"foo")
604604
.finalize()
605605
.hex();
606-
assert_eq!("8cf9408d6c57cb17802e24821631a881dc", &*hash);
606+
assert_eq!("0dea28da297ebeb1abb7fdd4c573887349", &*hash);
607607
}
608608

609609
#[test]
@@ -615,16 +615,16 @@ mod test {
615615
.personal(b"bing")
616616
.fanout(2)
617617
.max_depth(3)
618-
.max_leaf_length(4)
619-
.node_offset(5)
620-
.node_depth(6)
621-
.inner_hash_length(7)
618+
.max_leaf_length(0x04050607)
619+
.node_offset(0x08090a0b0c0d)
620+
.node_depth(16)
621+
.inner_hash_length(17)
622622
.last_node(true)
623623
.build()
624624
.update(b"foo")
625625
.finalize()
626626
.hex();
627-
assert_eq!("a6a418a8c97d2c7801b3c8c86aa243aa75", &*hash);
627+
assert_eq!("179b9a70409efca3310998dd8aacc0a5dd", &*hash);
628628
}
629629

630630
#[test]

0 commit comments

Comments
 (0)