diff --git a/crypto-primitives/src/merkle_tree/mod.rs b/crypto-primitives/src/merkle_tree/mod.rs index c621214..366bd1a 100644 --- a/crypto-primitives/src/merkle_tree/mod.rs +++ b/crypto-primitives/src/merkle_tree/mod.rs @@ -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(leaves: &[L]) -> () { let mut rng = XorShiftRng::seed_from_u64(13423423u64);