mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-09 23:41:33 +01:00
Merkle tree panics when there's a single leaf - test
This commit is contained in:
committed by
Pratyush Mishra
parent
f4e2039d61
commit
97ca70b854
@@ -418,6 +418,11 @@ mod test {
|
||||
generate_merkle_tree(&leaves);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn single_leaf_test() {
|
||||
generate_merkle_tree(&[[1u8; 8]]);
|
||||
}
|
||||
|
||||
fn bad_merkle_tree_verify<L: ToBytes + Clone + Eq>(leaves: &[L]) -> () {
|
||||
let mut rng = XorShiftRng::seed_from_u64(13423423u64);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user