better test
This commit is contained in:
parent
0cf2b5c247
commit
ad201bff73
1 changed files with 4 additions and 0 deletions
|
|
@ -50,7 +50,11 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn test() {
|
fn test() {
|
||||||
let mut list = List::new();
|
let mut list = List::new();
|
||||||
|
assert_eq!(None, list.pop());
|
||||||
list.push(42);
|
list.push(42);
|
||||||
assert_eq!(Some(42), list.pop());
|
assert_eq!(Some(42), list.pop());
|
||||||
|
assert_eq!(None, list.pop());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue