Skip to content

Instantly share code, notes, and snippets.

@mario-rezende-ifood
Created November 25, 2019 14:38
Show Gist options
  • Save mario-rezende-ifood/69df44af9c7ab36feaaf58822e8b9562 to your computer and use it in GitHub Desktop.
Save mario-rezende-ifood/69df44af9c7ab36feaaf58822e8b9562 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