add test_push_item

This commit is contained in:
Rostyslav Tyshko 2024-10-16 04:31:31 +02:00
parent 7cda8b285c
commit 6f5b0f97b0

View File

@ -98,6 +98,13 @@ mod tests {
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]
fn test_push_pop() {