empty regular tree test

This commit is contained in:
NikVolf 2019-01-09 12:04:37 +03:00
parent f995fda937
commit afa24400cd
1 changed files with 8 additions and 0 deletions

View File

@ -206,6 +206,14 @@ mod tests {
);
}
#[test]
fn empty_32_root() {
assert_eq!(
RegularTreeState::new().root(),
H256::from("ac58cd1388fec290d398f1944b564449a63c815880566bd1d189f7839e3b0c8c"),
)
}
#[test]
fn single_elem_in_double_tree() {
let mut tree = TreeState::<H2>::new();