Created
August 26, 2012 05:41
-
-
Save smallgeek/3474653 to your computer and use it in GitHub Desktop.
NaturalSpec_Tutorial_1_3
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
[<Scenario>] | |
let When_calculating_fac_5_it_should_equal_120() = | |
Given 5 | |
|> When calculating factorial | |
|> It should equal 120 | |
|> Verify | |
[<Scenario>] | |
let When_calculating_fac_1_it_should_equal_1() = | |
Given 1 | |
|> When calculating factorial | |
|> It should equal 1 | |
|> Verify | |
[<Scenario>] | |
let When_calculating_fac_0_it_should_equal_0() = | |
Given 0 | |
|> When calculating factorial | |
|> It should equal 1 | |
|> Verify |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment