Spock Web Console

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

Script1

Published 2 years ago by me
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!"() {
    expect:
    Math.max(1, 2) == 2
  }
  def "let's try something else!"() {
    expect:
    Math.min(1, 2) == 1
  }
}

class MySecondSpec extends Specification {
  def "check some crap"() {
    expect:
    def a = "a"
    def b = "b"
    a.concat(b) == "ab"
  }
}