Skip to content

Instantly share code, notes, and snippets.

@xala3pa
Last active February 7, 2016 19:22
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/06bc05a015b87c301f3a to your computer and use it in GitHub Desktop.
Save xala3pa/06bc05a015b87c301f3a to your computer and use it in GitHub Desktop.
class MathSpec extends Specification {
def "maximum of two numbers"() {
expect:
Math.max(a, b) == c
where:
a | b || c
1 | 3 || 3
7 | 4 || 4
0 | 0 || 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment