Last active
February 6, 2016 10:07
-
-
Save xala3pa/93b21b04ce4c6ce3c84e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment