Advertisement
Guest User

Untitled

a guest
Jul 5th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.18 KB | None | 0 0
  1. "A Stack" should "pop values in last-in-first-out order" in {
  2.     val stack = new Stack[Int]
  3.     stack.push(1)
  4.     stack.push(2)
  5.     assert(stack.pop() === 2)
  6.     assert(stack.pop() === 1)
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement