Sha256: 8fa77ab3f4dc39b3e1d9572694f6628bbc3b4276a658db4b2368c0cd54281bf3

Contents?: true

Size: 554 Bytes

Versions: 225

Compression:

Stored size: 554 Bytes

Contents

module Test.Main where

import Prelude
import Test.Unit (suite, test)
import Test.Unit.Main (runTest)
import Test.Unit.Assert as Assert
import Data.Maybe (Maybe(Just, Nothing))
import HelloWorld (helloWorld)


main = runTest do
  suite "HelloWorld.helloWorld" do
    test "Hello with no name" do
      Assert.equal "Hello, World!" (helloWorld Nothing)
    test "Hello to a sample name" do
      Assert.equal "Hello, Alice!" (helloWorld (Just "Alice"))
    test "Hello to another sample name" do
      Assert.equal "Hello, Bob!" (helloWorld (Just "Bob"))

Version data entries

225 entries across 225 versions & 1 rubygems

Version Path
trackler-2.2.1.37 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.36 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.35 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.34 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.33 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.32 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.31 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.30 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.29 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.28 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.27 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.26 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.25 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.24 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.23 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.22 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.21 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.20 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.19 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.1.18 tracks/purescript/exercises/hello-world/test/Main.purs