Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import spock.lang.*
- class MathSpec extends Specification {
- def "should calculate the maximum of two numbers"() {
- expect:
- Math.max(1, 3) == 3
- Math.max(7, 4) == 7
- Math.max(0, 0) == 0
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement