Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import spock.lang.*
- class MathSpec extends Specification {
- def "should calculate the 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 | 4
- 0 | 0 | 0
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement