Spock Web Console

subscribe to the feed Subscribe
large integers issue with Spock (via #spockwebconsole)
tweet this script Tweet

large integers issue with Spock

Published 1 year ago by Neon with tags large integer issue Math.max
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(19999999,222222423534564532149876) == 222222423534564532149876
  }
}