Spock Web Console

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

new spock

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

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