Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avh4/elm-spec


https://github.com/avh4/elm-spec

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

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

```elm
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
```