Sha256: dcc9bfefe06178812604253c2f5c5b27df007a54d58ff5af38892c2d56856a25

Contents?: true

Size: 1.21 KB

Versions: 43

Compression:

Stored size: 1.21 KB

Contents

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

module CryptoSquareTest

open FsUnit.Xunit
open Xunit

open CryptoSquare

[<Fact>]
let ``Empty plaintext results in an empty ciphertext`` () =
    ciphertext "" |> should equal ""

[<Fact(Skip = "Remove to run test")>]
let ``Lowercase`` () =
    ciphertext "A" |> should equal "a"

[<Fact(Skip = "Remove to run test")>]
let ``Remove spaces`` () =
    ciphertext "  b " |> should equal "b"

[<Fact(Skip = "Remove to run test")>]
let ``Remove punctuation`` () =
    ciphertext "@1,%!" |> should equal "1"

[<Fact(Skip = "Remove to run test")>]
let ``9 character plaintext results in 3 chunks of 3 characters`` () =
    ciphertext "This is fun!" |> should equal "tsf hiu isn"

[<Fact(Skip = "Remove to run test")>]
let ``8 character plaintext results in 3 chunks, the last one with a trailing space`` () =
    ciphertext "Chill out." |> should equal "clu hlt io "

[<Fact(Skip = "Remove to run test")>]
let ``54 character plaintext results in 7 chunks, the last two with trailing spaces`` () =
    ciphertext "If man was meant to stay on the ground, god would have given us roots." |> should equal "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn  sseoau "

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
trackler-2.2.1.88 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.87 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.86 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.85 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.84 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.83 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.82 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.81 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.80 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.79 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.78 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.77 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.76 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.75 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.74 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.73 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.72 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.71 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.70 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs
trackler-2.2.1.69 tracks/fsharp/exercises/crypto-square/CryptoSquareTest.fs