2017-05-27 19:56:31 +02:00
|
|
|
module Tests exposing (..)
|
2016-02-22 20:29:13 -07:00
|
|
|
|
2016-08-17 07:14:17 -04:00
|
|
|
import Test exposing (..)
|
|
|
|
import Expect
|
2016-03-13 14:29:54 -04:00
|
|
|
import HelloWorld exposing (helloWorld)
|
2016-02-22 20:29:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
tests : Test
|
|
|
|
tests =
|
2016-08-17 07:14:17 -04: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 17:46:13 -04:00
|
|
|
]
|