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