Sha256: fd6f6de5331b693893a3f1b2b3c1681074ca05844bcf7ccf40eb38ccc0eac287

Contents?: true

Size: 1.59 KB

Versions: 60

Compression:

Stored size: 1.59 KB

Contents

module Tests exposing (..)

import Test exposing (..)
import Expect
import Isogram exposing (isIsogram)


tests : Test
tests =
    describe "Isogram"
        [ test "empty string" <|
            \() ->
                Expect.equal True <| isIsogram ""
        , skip <|
            test "isogram with only lower case characters" <|
                \() ->
                    Expect.equal True <| isIsogram "isogram"
        , skip <|
            test "word with one duplicated character" <|
                \() ->
                    Expect.equal False <| isIsogram "eleven"
        , skip <|
            test "longest reported english isogram" <|
                \() ->
                    Expect.equal True <| isIsogram "subdermatoglyphic"
        , skip <|
            test "word with duplicated character in mixed case" <|
                \() ->
                    Expect.equal False <| isIsogram "Alphabet"
        , skip <|
            test "hypothetical isogrammic word with hyphen" <|
                \() ->
                    Expect.equal True <| isIsogram "thumbscrew-japingly"
        , skip <|
            test "isogram with duplicated non letter character" <|
                \() ->
                    Expect.equal True <| isIsogram "Hjelmqvist-Gryb-Zock-Pfund-Wax"
        , skip <|
            test "made-up name that is an isogram" <|
                \() ->
                    Expect.equal True <| isIsogram "Emily Jung Schwartzkopf"
        , skip <|
            test "duplicated character in the middle" <|
                \() ->
                    Expect.equal False <| isIsogram "accentor"
        ]

Version data entries

60 entries across 60 versions & 1 rubygems

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