Spock Web Console

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

asfasdfasdfasdf

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

// Hit 'Run Script' below
@Unroll
class MyFirstSpec extends Specification {
  def "#a max #b is #max"() {
    expect:
    Math.max(a, b) == max

    where: 
    a | b || max
    1 | 2 || 2
    2 | 2 || 2
  }
}