Spock Web Console

subscribe to the feed Subscribe
Power assertion sample (via #spockwebconsole)
tweet this script Tweet

Power assertion sample

Published 8 months ago by Connor
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!"() {
    when: def value = 94 / 2
    then: value == 8 * (2 * 2)
  }
}