Created
August 26, 2012 07:23
-
-
Save smallgeek/3475611 to your computer and use it in GitHub Desktop.
NaturalSpec_Tutorial_5_1
This file contains hidden or 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
| // 定義済みのシナリオ | |
| let factorialScenario x result = | |
| Given x | |
| |> When calculating factorial | |
| |> It should equal result | |
| [<Scenario>] | |
| let When_calculation_factorial_of_1() = | |
| factorialScenario 1 1 | |
| |> Verify | |
| [<Scenario>] | |
| let When_calculation_factorial_of_10() = | |
| factorialScenario 10 3628800 | |
| |> Verify |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment