Spock Web Console

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

data parameters

Published 1 year ago by upender with tags spock data unroll
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 {
  @Unroll 
  def "#a , #b max #c let's try this!"() {
    expect:
    Math.max(a, b) == c
    where:
    a||b||c
    10||5||10
    10||20||20
    20||20||10
  }
}