Created
October 14, 2016 03:26
-
-
Save fmamud/d11afc7f9f11fbc97feada8123499886 to your computer and use it in GitHub Desktop.
Data Table in Spock Specification
This file contains hidden or 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
import spock.lang.* | |
class MySpec extends Specification { | |
def "maximum of two numbers"(int a, int b, int c) { | |
expect: | |
Math.max(a, b) == c | |
where: | |
a | b | c | |
1 | 3 | 3 | |
7 | 4 | 7 | |
0 | 0 | 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment