add test_new_tree_initialization

This commit is contained in:
Rostyslav Tyshko 2024-10-23 02:00:30 +02:00
parent 3ee8150308
commit ac7c9966c3

View File

@ -132,4 +132,10 @@ mod tests {
fn create_nullifier(hash: TreeHashType) -> UTXONullifier {
UTXONullifier { utxo_hash: hash }
}
#[test]
fn test_new_tree_initialization() {
let tree = NullifierSparseMerkleTree::new();
assert!(tree.curr_root.is_none());
}
}