Sha256: 191418f9d80a3a602db0a0dbabed86fd346f6ec4affc565bd401cbdfd3553ccc

Contents?: true

Size: 1.4 KB

Versions: 33

Compression:

Stored size: 1.4 KB

Contents

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

module RotationalCipherTest

open FsUnit.Xunit
open Xunit

open RotationalCipher

[<Fact>]
let ``Rotate a by 0, same output as input`` () =
    rotate 0 "a" |> should equal "a"

[<Fact(Skip = "Remove to run test")>]
let ``Rotate a by 1`` () =
    rotate 1 "a" |> should equal "b"

[<Fact(Skip = "Remove to run test")>]
let ``Rotate a by 26, same output as input`` () =
    rotate 26 "a" |> should equal "a"

[<Fact(Skip = "Remove to run test")>]
let ``Rotate m by 13`` () =
    rotate 13 "m" |> should equal "z"

[<Fact(Skip = "Remove to run test")>]
let ``Rotate n by 13 with wrap around alphabet`` () =
    rotate 13 "n" |> should equal "a"

[<Fact(Skip = "Remove to run test")>]
let ``Rotate capital letters`` () =
    rotate 5 "OMG" |> should equal "TRL"

[<Fact(Skip = "Remove to run test")>]
let ``Rotate spaces`` () =
    rotate 5 "O M G" |> should equal "T R L"

[<Fact(Skip = "Remove to run test")>]
let ``Rotate numbers`` () =
    rotate 4 "Testing 1 2 3 testing" |> should equal "Xiwxmrk 1 2 3 xiwxmrk"

[<Fact(Skip = "Remove to run test")>]
let ``Rotate punctuation`` () =
    rotate 21 "Let's eat, Grandma!" |> should equal "Gzo'n zvo, Bmviyhv!"

[<Fact(Skip = "Remove to run test")>]
let ``Rotate all letters`` () =
    rotate 13 "The quick brown fox jumps over the lazy dog." |> should equal "Gur dhvpx oebja sbk whzcf bire gur ynml qbt."

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
trackler-2.2.1.99 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.98 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.97 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.96 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.95 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.94 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.93 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.92 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.91 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.90 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.89 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.88 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.87 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.86 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.85 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.84 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.83 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.82 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.81 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs
trackler-2.2.1.80 tracks/fsharp/exercises/rotational-cipher/RotationalCipherTest.fs