2017-05-27 17:56:31 +00:00
|
|
|
module Tests exposing (..)
|
2016-02-23 03:29:13 +00:00
|
|
|
|
2016-08-17 11:14:17 +00:00
|
|
|
import Test exposing (..)
|
|
|
|
import Expect
|
2016-03-13 18:29:54 +00:00
|
|
|
import HelloWorld exposing (helloWorld)
|
2016-02-23 03:29:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
tests : Test
|
|
|
|
tests =
|
2016-08-17 11:14:17 +00:00
|
|
|
describe "Hello, World!"
|
|
|
|
[ test "Hello with no name" <|
|
|
|
|
\() ->
|
|
|
|
Expect.equal "Hello, World!" (helloWorld Nothing)
|
2017-07-08 00:35:54 +00:00
|
|
|
|
|
|
|
-- Once you get the first test passing, remove the
|
|
|
|
-- `skip <|` (just leave the comma) on the next two
|
|
|
|
-- lines to continue!
|
2017-07-05 20:35:15 +00:00
|
|
|
, 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"))
|
2016-06-19 21:46:13 +00:00
|
|
|
]
|