Skip to content

Commit

Permalink
test(cordyceps): added missing checks to push_back test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrannican committed Jun 5, 2022
1 parent 3a98f21 commit e40bb23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cordyceps/src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,9 @@ mod tests {
let f = list.pop_back().unwrap();
assert_eq!(5, f.val);

assert!(list.is_empty());
assert!(list.pop_back().is_none());

list.assert_valid();
}

Expand Down

0 comments on commit e40bb23

Please sign in to comment.