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