Spock Web Console

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

Whoops

Published 3 years ago by Anonymous
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!"() {
    throw new Exception('whoops!')
    
    expect:
    Math.max(1, 2) == 3
  }
}