mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-31 20:41:22 +00:00
extra asserts
This commit is contained in:
@@ -181,6 +181,10 @@ impl Tree {
|
|||||||
truncated,
|
truncated,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn len(&self) -> u32 {
|
||||||
|
self.stored_count
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -387,5 +391,8 @@ mod tests {
|
|||||||
(NodeLink::Stored(14), NodeLink::Stored(15)) => { /* ok */ },
|
(NodeLink::Stored(14), NodeLink::Stored(15)) => { /* ok */ },
|
||||||
_ => panic!("Root should have s(14) and s(15) children")
|
_ => panic!("Root should have s(14) and s(15) children")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
assert_eq!(delete_tx.truncated, 2);
|
||||||
|
assert_eq!(tree.len(), 16);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user