Skip to content

avh4/elm-spec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published