Sha256: 30feb50068d563bd72b0d5badf9c22a521f21ed6df6281d451cf13971fd3d3ad

Contents?: true

Size: 1.21 KB

Versions: 90

Compression:

Stored size: 1.21 KB

Contents

// This file was auto-generated based on version 3.2.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

90 entries across 90 versions & 1 rubygems

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