Sha256: b393d87468fc1ae33a47befacf6bf313807d65af1f652c5b583310ad570bc051
Contents?: true
Size: 905 Bytes
Versions: 92
Compression:
Stored size: 905 Bytes
Contents
module NthPrimeTest open NUnit.Framework open NthPrime [<TestCase(1, ExpectedResult = 2)>] [<TestCase(2, ExpectedResult = 3, Ignore = "Remove to run test case")>] [<TestCase(3, ExpectedResult = 5, Ignore = "Remove to run test case")>] [<TestCase(4, ExpectedResult = 7, Ignore = "Remove to run test case")>] [<TestCase(5, ExpectedResult = 11, Ignore = "Remove to run test case")>] [<TestCase(6, ExpectedResult = 13, Ignore = "Remove to run test case")>] [<TestCase(7, ExpectedResult = 17, Ignore = "Remove to run test case")>] [<TestCase(8, ExpectedResult = 19, Ignore = "Remove to run test case")>] [<TestCase(1000, ExpectedResult = 7919, Ignore = "Remove to run test case")>] [<TestCase(10000, ExpectedResult = 104729, Ignore = "Remove to run test case")>] [<TestCase(10001, ExpectedResult = 104743, Ignore = "Remove to run test case")>] let ``Nth prime calculated`` (nth: int ) = nthPrime nth
Version data entries
92 entries across 92 versions & 1 rubygems