Spock Web Console

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

from slack

Published 2 weeks 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 {
 @Unroll
 void 'test to demostrate Spock is jost accepting integer in datatable column value'() {
   expect:
   Math.round(value) == result   
   where:
   value     | result
   1234      | 1234
   4321.56d  | 4322d
   1111.56f  | 1112d
 }
}