Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "A Stack" should "pop values in last-in-first-out order" in {
- val stack = new Stack[Int]
- stack.push(1)
- stack.push(2)
- assert(stack.pop() === 2)
- assert(stack.pop() === 1)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement