fix `roundtrip_sapling_tree_root` and `roundtrip_orchard_tree_root` proptests (#7628)
This commit is contained in:
parent
0309afc0b9
commit
90df59af55
|
|
@ -376,7 +376,7 @@ fn roundtrip_sapling_subtree_data() {
|
|||
let _init_guard = zebra_test::init();
|
||||
|
||||
proptest!(|(mut val in any::<NoteCommitmentSubtreeData<sapling::tree::Node>>())| {
|
||||
val.end = val.end.clamp(Height(0), MAX_ON_DISK_HEIGHT);
|
||||
val.end.0 %= MAX_ON_DISK_HEIGHT.0 + 1;
|
||||
assert_value_properties(val)
|
||||
});
|
||||
}
|
||||
|
|
@ -462,6 +462,7 @@ fn roundtrip_orchard_subtree_data() {
|
|||
|
||||
proptest!(|(mut val in any::<NoteCommitmentSubtreeData<orchard::tree::Node>>())| {
|
||||
val.end = val.end.clamp(Height(0), MAX_ON_DISK_HEIGHT);
|
||||
val.end.0 %= MAX_ON_DISK_HEIGHT.0 + 1;
|
||||
assert_value_properties(val)
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue