Spock Web Console

subscribe to the feed Subscribe
Unroll (via #spockwebconsole)
tweet this script Tweet

Unroll

Published 1 year ago by Farid with tags Unroll
Actions  ➤ Edit In Console Back To Console Show/Hide Line Numbers View Recent Scripts
@Unroll("#name is of length #length")
class HelloSpock extends spock.lang.Specification {
    def "length of Spock's and his friends' names"() {
        expect:
        name.size() == length

        where:
        name     | length
        "Spock"  | 5
        "Kirk"   | 4
        "Scotty" | 6
    }
}