Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import spock.lang.*
  2.  
  3. class MathSpec extends Specification {
  4. def "should calculate the maximum of two numbers"(int a, int b, int c) {
  5. expect:
  6. Math.max(a, b) == c
  7.  
  8. where:
  9. a | b | c
  10. 1 | 3 | 3
  11. 7 | 4 | 4
  12. 0 | 0 | 0
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement