Spock Web Console

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

ternary

Published 1 week ago by hennadii
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!"() {
    String s = false
        ? "one"
        : "two"

    System.out.println(s)
    expect:
    Math.max(1, 2) == 3
  }
}