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.1.0.45 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.44 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.43 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.42 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.41 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.40 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.39 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.38 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.37 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.36 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.34 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.33 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.32 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.31 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.30 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.29 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.28 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.27 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.26 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs
trackler-2.1.0.25 tracks/fsharp/exercises/atbash-cipher/AtbashTest.fs