Spock Web Console

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

Iteration Count

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

class IterationCount extends Specification {
  @Unroll
  def "maximum #iterationCount"() {
    expect:
    Math.max(a, b) == c

    where:
    a | b | c
    1 | 2 | 1
    4 | 5 | 4
  }
}