Sha256: 9b1d571d534d6bb2cd084f099a241e1a070d8ccf58cb5457abcc15e61d894e9b

Contents?: true

Size: 1.75 KB

Versions: 149

Compression:

Stored size: 1.75 KB

Contents

module AtbashTest

open NUnit.Framework
open Atbash

[<Test>]
let ``Encode yes`` () =
    let phrase = "yes"
    let expected = "bvh"
    let actual = encode phrase
    Assert.That(actual, Is.EqualTo(expected))

[<Test>]
[<Ignore("Remove to run test")>]     
let ``Encode no`` () =
    let phrase = "no"
    let expected = "ml"
    let actual = encode phrase
    Assert.That(actual, Is.EqualTo(expected))

[<Test>]
[<Ignore("Remove to run test")>]     
let ``Encode OMG`` () =
    let phrase = "OMG"
    let expected = "lnt"
    let actual = encode phrase
    Assert.That(actual, Is.EqualTo(expected))

[<Test>]
[<Ignore("Remove to run test")>]     
let ``Encode spaces`` () =
    let phrase = "O M G"
    let expected = "lnt"
    let actual = encode phrase
    Assert.That(actual, Is.EqualTo(expected))

[<Test>]
[<Ignore("Remove to run test")>]     
let ``Encode mindblowingly`` () =
    let phrase = "mindblowingly"
    let expected = "nrmwy oldrm tob"
    let actual = encode phrase
    Assert.That(actual, Is.EqualTo(expected))

[<Test>]
[<Ignore("Remove to run test")>]     
let ``Encode numbers`` () =
    let phrase = "Testing, 1 2 3, testing."
    let expected = "gvhgr mt123 gvhgr mt"
    let actual = encode phrase
    Assert.That(actual, Is.EqualTo(expected))

[<Test>]
[<Ignore("Remove to run test")>]     
let ``Encode deep thought`` () =
    let phrase = "Truth is fiction."
    let expected = "gifgs rhurx grlm"
    let actual = encode phrase
    Assert.That(actual, Is.EqualTo(expected))

[<Test>]
[<Ignore("Remove to run test")>]     
let ``Encode all the letters`` () =
    let phrase = "The quick brown fox jumps over the lazy dog."
    let expected = "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt"
    let actual = encode phrase
    Assert.That(actual, Is.EqualTo(expected))

Version data entries

149 entries across 149 versions & 1 rubygems

Version Path
trackler-2.2.1.22 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.21 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.20 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.19 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.18 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.17 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.16 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.15 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.14 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.13 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.12 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.11 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.10 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.9 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.8 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.7 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.6 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.5 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.4 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.2.1.3 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs