Spock Web Console

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

cv

Published 2 years ago by cvhbc with tags cvb
Actions  ➤ Edit In Console Back To Console Show/Hide Line Numbers View Recent Scripts
class MathSpec extends Specification {     def "maximum of two numbers"() {         expect:         // exercise math method for a few different inputs         Math.max(1, 3) == 3         Math.max(7, 4) == 7         Math.max(0, 0) == 0     } }