Sha256: de17d2131986725f9ffa76392e45daed2c8f078d8aa64b53579ac53be7880a69

Contents?: true

Size: 1.58 KB

Versions: 240

Compression:

Stored size: 1.58 KB

Contents

module RaindropsTest
    
open NUnit.Framework
open Raindrops

[<TestCase(1, ExpectedResult = "1")>]
[<TestCase(52, ExpectedResult = "52", Ignore = "Remove to run test case")>]
[<TestCase(12121, ExpectedResult = "12121", Ignore = "Remove to run test case")>]
let ``Non primes pass through`` (number) =
    convert number

[<TestCase(3, Ignore = "Remove to run test case")>]
[<TestCase(6, Ignore = "Remove to run test case")>]
[<TestCase(9, Ignore = "Remove to run test case")>]
let ``Numbers containing 3 as a prime factor give pling`` (number) =
    Assert.That(convert number, Is.EqualTo("Pling"))

[<TestCase(5, Ignore = "Remove to run test case")>]
[<TestCase(10, Ignore = "Remove to run test case")>]
[<TestCase(25, Ignore = "Remove to run test case")>]
let ``Numbers containing 5 as a prime factor give plang`` (number) =
    Assert.That(convert number, Is.EqualTo("Plang"))

[<TestCase(7, Ignore = "Remove to run test case")>]
[<TestCase(14, Ignore = "Remove to run test case")>]
[<TestCase(49, Ignore = "Remove to run test case")>]
let ``Numbers containing 7 as a prime factor give plong`` (number) =
    Assert.That(convert number, Is.EqualTo("Plong"))

[<TestCase(15, ExpectedResult = "PlingPlang", Ignore = "Remove to run test case")>]
[<TestCase(21, ExpectedResult = "PlingPlong", Ignore = "Remove to run test case")>]
[<TestCase(35, ExpectedResult = "PlangPlong", Ignore = "Remove to run test case")>]
[<TestCase(105, ExpectedResult = "PlingPlangPlong", Ignore = "Remove to run test case")>]    
let ``Numbers containing multiple prime factors give all results concatenated`` (number) =
    convert number

Version data entries

240 entries across 240 versions & 1 rubygems

Version Path
trackler-2.2.1.22 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.21 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.20 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.19 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.18 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.17 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.16 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.15 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.14 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.13 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.12 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.11 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.10 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.9 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.8 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.7 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.6 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.5 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.4 tracks/fsharp/exercises/raindrops/RaindropsTest.fs
trackler-2.2.1.3 tracks/fsharp/exercises/raindrops/RaindropsTest.fs