2016-03-13 18:29:54 +00:00
|
|
|
module Main (..) where
|
2016-02-23 03:29:13 +00:00
|
|
|
|
2016-03-13 18:29:54 +00:00
|
|
|
import Task
|
2016-02-23 03:29:13 +00:00
|
|
|
import Console
|
|
|
|
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
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
port runner : Signal (Task.Task x ())
|
|
|
|
port runner =
|
|
|
|
Console.run (consoleRunner tests)
|