Sha256: 2e62a0984d82a398a760bbf9a851dbbabaed96db135fd23cd520d15cb771b640

Contents?: true

Size: 1.99 KB

Versions: 76

Compression:

Stored size: 1.99 KB

Contents

// This file was auto-generated based on version 1.1.0 of the canonical data.

module ProverbTest

open FsUnit.Xunit
open Xunit

open Proverb

[<Fact>]
let ``Zero pieces`` () =
    let strings: string list = []
    let expected: string list = []
    recite strings |> should equal expected

[<Fact(Skip = "Remove to run test")>]
let ``One piece`` () =
    let strings = ["nail"]
    let expected = ["And all for the want of a nail."]
    recite strings |> should equal expected

[<Fact(Skip = "Remove to run test")>]
let ``Two pieces`` () =
    let strings = ["nail"; "shoe"]
    let expected = 
        [ "For want of a nail the shoe was lost.";
          "And all for the want of a nail." ]
    recite strings |> should equal expected

[<Fact(Skip = "Remove to run test")>]
let ``Three pieces`` () =
    let strings = ["nail"; "shoe"; "horse"]
    let expected = 
        [ "For want of a nail the shoe was lost.";
          "For want of a shoe the horse was lost.";
          "And all for the want of a nail." ]
    recite strings |> should equal expected

[<Fact(Skip = "Remove to run test")>]
let ``Full proverb`` () =
    let strings = ["nail"; "shoe"; "horse"; "rider"; "message"; "battle"; "kingdom"]
    let expected = 
        [ "For want of a nail the shoe was lost.";
          "For want of a shoe the horse was lost.";
          "For want of a horse the rider was lost.";
          "For want of a rider the message was lost.";
          "For want of a message the battle was lost.";
          "For want of a battle the kingdom was lost.";
          "And all for the want of a nail." ]
    recite strings |> should equal expected

[<Fact(Skip = "Remove to run test")>]
let ``Four pieces modernized`` () =
    let strings = ["pin"; "gun"; "soldier"; "battle"]
    let expected = 
        [ "For want of a pin the gun was lost.";
          "For want of a gun the soldier was lost.";
          "For want of a soldier the battle was lost.";
          "And all for the want of a pin." ]
    recite strings |> should equal expected

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.179 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.178 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.177 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.176 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.175 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.174 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.173 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.172 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.171 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.170 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.169 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.167 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.166 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.165 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.164 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.163 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.162 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.161 tracks/fsharp/exercises/proverb/ProverbTest.fs
trackler-2.2.1.160 tracks/fsharp/exercises/proverb/ProverbTest.fs