Sha256: 90e1162ab079e0501adb93c3696af3d924c11e650addb27582a159826b1fb88b

Contents?: true

Size: 1.55 KB

Versions: 114

Compression:

Stored size: 1.55 KB

Contents

module Tests exposing (..)

import Test exposing (..)
import Expect
import AtbashCipher exposing (encode, decode)


tests : Test
tests =
    describe "AtbashCipher"
        [ test "encode no" <|
            \() -> Expect.equal "ml" (encode "no")
        , skip <|
            test "encode yes" <|
                \() -> Expect.equal "bvh" (encode "yes")
        , skip <|
            test "encode OMG" <|
                \() -> Expect.equal "lnt" (encode "OMG")
        , skip <|
            test "encode O M G" <|
                \() -> Expect.equal "lnt" (encode "O M G")
        , skip <|
            test "encode long word" <|
                \() -> Expect.equal "nrmwy oldrm tob" (encode "mindblowingly")
        , skip <|
            test "encode numbers" <|
                \() -> Expect.equal "gvhgr mt123 gvhgr mt" (encode "Testing, 1 2 3, testing.")
        , skip <|
            test "encode sentence" <|
                \() -> Expect.equal "gifgs rhurx grlm" (encode "Truth is fiction.")
        , skip <|
            test "encode all things" <|
                \() ->
                    Expect.equal "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt"
                        (encode "The quick brown fox jumps over the lazy dog.")
        , skip <|
            test "decode word" <|
                \() -> Expect.equal "exercism" (decode "vcvix rhn")
        , skip <|
            test "decode sentence" <|
                \() ->
                    Expect.equal "anobstacleisoftenasteppingstone"
                        (decode "zmlyh gzxov rhlug vmzhg vkkrm thglm v")
        ]

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
trackler-2.2.1.104 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.103 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.102 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.101 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.100 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.99 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.98 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.97 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.96 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.95 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.94 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.93 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.92 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.91 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.90 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.89 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.88 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.87 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.86 tracks/elm/exercises/atbash-cipher/tests/Tests.elm
trackler-2.2.1.85 tracks/elm/exercises/atbash-cipher/tests/Tests.elm