2016-05-13 02:26:52 +00:00
|
|
|
module Main exposing (..)
|
2016-02-23 03:29:13 +00:00
|
|
|
|
|
|
|
import ElmTest exposing (..)
|
2016-03-13 18:29:54 +00:00
|
|
|
import HelloWorld exposing (helloWorld)
|
2016-02-23 03:29:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
tests : Test
|
|
|
|
tests =
|
2016-03-13 18:29:54 +00:00
|
|
|
suite
|
|
|
|
"Hello, World!"
|
|
|
|
[ test "Hello with no name" (assertEqual "Hello, World!" (helloWorld Nothing))
|
|
|
|
, test "Hello to a sample name" (assertEqual "Hello, Alice!" (helloWorld (Just "Alice")))
|
|
|
|
, test "Hello to another sample name" (assertEqual "Hello, Bob!" (helloWorld (Just "Bob")))
|
2016-02-23 03:29:13 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2016-05-13 02:26:52 +00:00
|
|
|
main : Program Never
|
|
|
|
main =
|
|
|
|
runSuite tests
|