import spock.lang.* class MyFirstSpec extends Specification { @Unroll("max(#a,#b) = #c") def "max function returns correct maximum"() { expect: Math.max(a, b) == c where: a << [2,0,4] b << [1,1,3] c << [2,1,4] } }