Skip to content

Instantly share code, notes, and snippets.

@fmamud
Created October 14, 2016 03:26
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 fmamud/d11afc7f9f11fbc97feada8123499886 to your computer and use it in GitHub Desktop.
Save fmamud/d11afc7f9f11fbc97feada8123499886 to your computer and use it in GitHub Desktop.
Data Table in Spock Specification
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