Spock Web Console

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

requires

Published 1 year ago by mehdi with tags annotations
Actions  ➤ Edit In Console Back To Console Show/Hide Line Numbers View Recent Scripts
import spock.lang.*
@Requires({
        println System.properties.'os.name'
        os.isMacOs()
})
class MyFirstSpec extends Specification {
  def "let's try this!"() {
    expect:
    Math.max(1, 2) == 3
  }
}