Sha256: f7454f392cb84fb5443c3f0b7a5cf031641ebe0ec0ad6d35440a341c897772c2

Contents?: true

Size: 1.45 KB

Versions: 141

Compression:

Stored size: 1.45 KB

Contents

module Test.Main where

import Prelude
import Control.Monad.Eff (Eff)
import Control.Monad.Aff.AVar (AVAR)
import Control.Monad.Eff.Console (CONSOLE)
import Test.Unit (TestSuite, suite, test)
import Test.Unit.Console (TESTOUTPUT)
import Test.Unit.Main (runTest)
import Test.Unit.Assert as Assert
import Raindrops (raindrops)

main :: forall eff
  . Eff ( avar :: AVAR
        , console :: CONSOLE
        , testOutput :: TESTOUTPUT
        | eff                     
        )
        Unit
main = runTest suites

suites :: forall e. TestSuite e
suites = do
  suite "Raindrops.raindrops" do
    test "1" do
      Assert.equal "1" $ raindrops 1
    test "3" do
      Assert.equal "Pling" $ raindrops 3
    test "5" do
      Assert.equal "Plang" $ raindrops 5
    test "7" do
      Assert.equal "Plong" $ raindrops 7
    test "6" do
      Assert.equal "Pling" $ raindrops 6
    test "9" do
      Assert.equal "Pling" $ raindrops 9
    test "10" do
      Assert.equal "Plang" $ raindrops 10
    test "14" do
      Assert.equal "Plong" $ raindrops 14
    test "15" do
      Assert.equal "PlingPlang" $ raindrops 15
    test "21" do
      Assert.equal "PlingPlong" $ raindrops 21
    test "25" do
      Assert.equal "Plang" $ raindrops 25
    test "35" do
      Assert.equal "PlangPlong" $ raindrops 35
    test "49" do
      Assert.equal "Plong" $ raindrops 49
    test "52" do
      Assert.equal "52" $ raindrops 52
    test "105" do
      Assert.equal "PlingPlangPlong" $ raindrops 105

Version data entries

141 entries across 141 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.118 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.117 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.116 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.115 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.114 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.113 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.111 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.110 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.109 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.108 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.107 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.106 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.105 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.104 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.103 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.102 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.101 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.100 tracks/purescript/exercises/raindrops/test/Main.purs
trackler-2.2.1.99 tracks/purescript/exercises/raindrops/test/Main.purs