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.84 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.83 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.82 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.81 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.80 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.79 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.78 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.77 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.76 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.75 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.74 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.73 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.72 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.71 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.70 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.69 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.68 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.67 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.66 tracks/elm/exercises/isogram/tests/Tests.elm
trackler-2.2.1.65 tracks/elm/exercises/isogram/tests/Tests.elm