Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avh4/elm-spec
https://github.com/avh4/elm-spec
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/avh4/elm-spec
- Owner: avh4
- Created: 2015-01-19T01:47:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-22T06:10:21.000Z (over 8 years ago)
- Last Synced: 2024-04-13T16:20:20.918Z (8 months ago)
- Language: Elm
- Size: 27.3 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```