Sha256: fbd0365ec5489d9cb2731327abb7acaf6b900e7a538b36d56782b7714df40c08

Contents?: true

Size: 1.5 KB

Versions: 79

Compression:

Stored size: 1.5 KB

Contents

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

module SecretHandshakeTest

open FsUnit.Xunit
open Xunit

open SecretHandshake

[<Fact>]
let ``Wink for 1`` () =
    commands 1 |> should equal ["wink"]

[<Fact(Skip = "Remove to run test")>]
let ``Double blink for 10`` () =
    commands 2 |> should equal ["double blink"]

[<Fact(Skip = "Remove to run test")>]
let ``Close your eyes for 100`` () =
    commands 4 |> should equal ["close your eyes"]

[<Fact(Skip = "Remove to run test")>]
let ``Jump for 1000`` () =
    commands 8 |> should equal ["jump"]

[<Fact(Skip = "Remove to run test")>]
let ``Combine two actions`` () =
    commands 3 |> should equal ["wink"; "double blink"]

[<Fact(Skip = "Remove to run test")>]
let ``Reverse two actions`` () =
    commands 19 |> should equal ["double blink"; "wink"]

[<Fact(Skip = "Remove to run test")>]
let ``Reversing one action gives the same action`` () =
    commands 24 |> should equal ["jump"]

[<Fact(Skip = "Remove to run test")>]
let ``Reversing no actions still gives no actions`` () =
    commands 16 |> should be Empty

[<Fact(Skip = "Remove to run test")>]
let ``All possible actions`` () =
    commands 15 |> should equal ["wink"; "double blink"; "close your eyes"; "jump"]

[<Fact(Skip = "Remove to run test")>]
let ``Reverse all possible actions`` () =
    commands 31 |> should equal ["jump"; "close your eyes"; "double blink"; "wink"]

[<Fact(Skip = "Remove to run test")>]
let ``Do nothing for zero`` () =
    commands 0 |> should be Empty

Version data entries

79 entries across 79 versions & 1 rubygems

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