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)
|
|
|
|
, test "Hello to a sample name" <|
|
|
|
|
\() ->
|
|
|
|
Expect.equal "Hello, Alice!" (helloWorld (Just "Alice"))
|
|
|
|
, test "Hello to another sample name" <|
|
|
|
|
\() ->
|
|
|
|
Expect.equal "Hello, Bob!" (helloWorld (Just "Bob"))
|
2016-06-19 21:46:13 +00:00
|
|
|
]
|