mirror of
https://github.com/fluencelabs/interface-types
synced 2025-06-11 22:11:25 +00:00
test(interface-types) Improve test cases for Stack
.
This commit is contained in:
@ -100,7 +100,9 @@ mod tests {
|
||||
|
||||
assert_eq!(stack.pop(1), Some(vec![6]));
|
||||
assert_eq!(stack.pop(2), Some(vec![5, 4]));
|
||||
assert_eq!(stack.pop(4), None); // not enough items
|
||||
assert_eq!(stack.pop(3), Some(vec![3, 2, 1]));
|
||||
assert_eq!(stack.pop1(), None);
|
||||
assert_eq!(stack.is_empty(), true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user