better test

This commit is contained in:
Sander Hautvast 2022-02-14 13:07:21 +01:00
parent 0cf2b5c247
commit ad201bff73

View file

@ -50,7 +50,11 @@ mod tests {
#[test]
fn test() {
let mut list = List::new();
assert_eq!(None, list.pop());
list.push(42);
assert_eq!(Some(42), list.pop());
assert_eq!(None, list.pop());
}
}