Skip to content

Instantly share code, notes, and snippets.

@xala3pa
Last active February 6, 2016 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xala3pa/93b21b04ce4c6ce3c84e to your computer and use it in GitHub Desktop.
Save xala3pa/93b21b04ce4c6ce3c84e to your computer and use it in GitHub Desktop.
import spock.lang.*
class MathSpec extends Specification {
def "should calculate the maximum of two numbers"() {
expect:
Math.max(1, 3) == 3
Math.max(7, 4) == 7
Math.max(0, 0) == 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment