Spock Web Console

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

Untitled

Published 2 years ago by Anonymous
Actions  ➤ Edit In Console Back To Console Show/Hide Line Numbers View Recent Scripts
import spock.lang.*

// Hit 'Run Script' below
class MyFirstSpec extends Specification {
  def "let's try this!"() {
    expect:
    Math.max(1, a + b) == c

    where:
    a | b || c
    4 | 5 || 4
    6 | 9 || 8
  }
}