mirror of
https://github.com/correl/elm.git
synced 2024-11-25 11:09:53 +00:00
4d81104a85
This allows learners to gradually approach exercise. However, unlike commented tests, the Elm compiler is still able to infer type information from the skipped tests.
22 lines
622 B
Elm
22 lines
622 B
Elm
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)
|
|
, 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"))
|
|
]
|