class HelloSpock extends spock.lang.Specification { | |
def "length of Spock's and his friends' names"() { | |
expect: | |
name.size() == length | |
where: | |
name | length | |
"Kirk" | 4 // a great guy | |
"Scotty" | 6 | |
} | |
} | |
----- | |
class HelloSpock extends spock.lang.Specification { | |
def "length of Spock's and his friends' names"() { | |
expect: | |
name.size() == length | |
where: | |
name | length | |
"Kirk" | 4 // a great guy | |
"Scotty" | 6 | |
} | |
} |