Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mariorez/3d154cc4be62df768a959f775307f450 to your computer and use it in GitHub Desktop.
Save mariorez/3d154cc4be62df768a959f775307f450 to your computer and use it in GitHub Desktop.
given:
def stack = new Stack()
when:
stack.pop()
then:
thrown(EmptyStackException)
stack.empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment