Sha256: 00a8c1de19e5580ffd6b2bcded865212e1554085ceb62720be7046c09c5f4369

Contents?: true

Size: 772 Bytes

Versions: 114

Compression:

Stored size: 772 Bytes

Contents

module Tests exposing (..)

import Test exposing (..)
import Expect
import HelloWorld exposing (helloWorld)


tests : Test
tests =
    describe "Hello, World!"
        [ test "Hello with no name" <|
            \() ->
                Expect.equal "Hello, World!" (helloWorld Nothing)

        -- Once you get the first test passing, remove the
        -- `skip <|` (just leave the comma) on the next two
        -- lines to continue!
        , skip <|
            test "Hello to a sample name" <|
                \() ->
                    Expect.equal "Hello, Alice!" (helloWorld (Just "Alice"))
        , skip <|
            test "Hello to another sample name" <|
                \() ->
                    Expect.equal "Hello, Bob!" (helloWorld (Just "Bob"))
        ]

Version data entries

114 entries across 114 versions & 1 rubygems

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