Spock Web Console

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

from slack

Published 7 months ago by Eric
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 {
 void 'test to demostrate Spock is jost accepting integer in datatable column value'() {
   Math.round(value) == result   
   value     | result
   1234      | 1234
   4321.56d  | 4322d
   1111.56f  | 1112d