/elm-spec

Primary LanguageElm

You probably want elm-community/elm-test >= 2.x instead http://package.elm-lang.org/packages/elm-community/elm-test/latest

Experimental alternative for writing unit tests

import Spec.Runner.Console as Console
import Spec exposing (..)

allTests = 
  describe "Addition"
    [ it "is commutative" [ (1+2) `shouldEqual` (2+1) ]
    , it "is associative" [ ((1+2)+3) `shouldEqual` (1+(2+3)) ]
    ]

testRunner : String
testRunner = Console.run allTests