SHOW:
|
|
- or go back to the newest paste.
1 | // testing Stack | |
2 | "A Stack" should "pop values in last-in-first-out order" in { | |
3 | val stack = new Stack[Int] | |
4 | stack.push(1) | |
5 | stack.push(2) | |
6 | assert(stack.pop() === 2) | |
7 | - | } |
7 | + | |
8 | } | |
9 | ||
10 | // testing collections | |
11 | List(1, 2, 2, 3, 3, 3) should contain theSameElementsAs Vector(3, 2, 3, 1, 2, 3) |