Spock Web Console

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

Where

Published 2 years ago by Mark
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(first, second) == max

    where:
    first | second | max
    1     | 2      | 2
    1     | 2      | 3
    2     | 1      | 3
  }
}