Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Spock unit test to validade a simple division method
when: "I divide a number by another"
def result = controller.divide firstNumber, secondNumber
then: "I should get the correct value"
result == expectedResult
where: "The values are as following"
firstNumber | secondNumber | expectedResult
10 | 5 | 2
36 | 6 | 6
-10 | -1 | 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.