Created
August 26, 2012 08:03
-
-
Save smallgeek/3475985 to your computer and use it in GitHub Desktop.
NaturalSpec_Tutorial_6_2
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
| [<Scenario>] | |
| let When_sorting_empty_list() = | |
| quicksortScenario [] | |
| |> Verify | |
| [<Scenario>] | |
| let When_sorting_small_list() = | |
| quicksortScenario [2;1;8;15;5;22] | |
| |> Verify | |
| [<ScenarioTemplate(100)>] | |
| [<ScenarioTemplate(1000)>] | |
| [<ScenarioTemplate(2500)>] | |
| let When_sorting_ordered_list n = | |
| quicksortScenario [1..n] | |
| |> Verify | |
| [<ScenarioTemplate(100)>] | |
| [<ScenarioTemplate(1000)>] | |
| [<ScenarioTemplate(2500)>] | |
| let When_sorting_random_list n = | |
| quicksortScenario (list_of_random_ints n) | |
| |> Verify |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment