Last active
February 7, 2016 19:22
-
-
Save xala3pa/06bc05a015b87c301f3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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