mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-07 15:53:14 +00:00
add test_push_item
This commit is contained in:
parent
7cda8b285c
commit
6f5b0f97b0
@ -98,6 +98,13 @@ mod tests {
|
|||||||
assert_eq!(pool.len(), 0);
|
assert_eq!(pool.len(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_push_item() {
|
||||||
|
let mut pool = MemPool::new();
|
||||||
|
pool.push_item(test_item_with_id(1));
|
||||||
|
assert!(!pool.is_empty());
|
||||||
|
assert_eq!(pool.len(), 1);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_push_pop() {
|
fn test_push_pop() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user