Last active
January 30, 2016 18:20
-
-
Save xala3pa/71aecb580ddad7624c07 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.Specification; | |
import com.xala3pa.Calculator | |
class calculatorSpec extends Specification { | |
def "Add 3 and 4 to get the correct result"() { | |
given: "A calculator" | |
def calculator = new Calculator() | |
when: "Add 3 and 4" | |
def result = calculator.add(3, 4) | |
then: "Get the correct result" | |
result == 7 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment