mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 13:23:10 +00:00
add test_is_empty
This commit is contained in:
parent
3548d98cd9
commit
2b65e39bee
@ -157,6 +157,13 @@ mod tests {
|
||||
assert_eq!(pool.len(), 0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_is_empty() {
|
||||
let mut pool = MemPool::new();
|
||||
assert!(pool.is_empty());
|
||||
pool.push_item(test_item_with_id(1));
|
||||
assert!(!pool.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_push_pop() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user