Spock Web Console

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

DataDriven

Published 3 months ago by raghu with tags data-driven
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(a, b) == c
    where: 
    a | b || c
    1 | 1 || 1
    2 | 5 || 5
    3 | 30|| 30
  }
}