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.0.4 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.0.3 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.0.2 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.0.1 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.2.0.0 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.55 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.54 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.53 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.52 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.51 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.50 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.49 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.48 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.47 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.46 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.45 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.44 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.43 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.42 tracks/purescript/exercises/hello-world/test/Main.purs
trackler-2.1.0.41 tracks/purescript/exercises/hello-world/test/Main.purs