mirror of
https://github.com/correl/elm.git
synced 2024-12-24 03:00:10 +00:00
Merge branch 'lpil-docs'
This commit is contained in:
commit
4487381ad7
1 changed files with 19 additions and 8 deletions
27
README.md
27
README.md
|
@ -57,23 +57,34 @@ Please keep the following in mind:
|
||||||
- Test files should use the following format:
|
- Test files should use the following format:
|
||||||
|
|
||||||
```elm
|
```elm
|
||||||
module Main exposing (..)
|
port module Main exposing (..)
|
||||||
|
|
||||||
import ElmTest exposing (..)
|
import Test.Runner.Node exposing (run)
|
||||||
|
import Json.Encode exposing (Value)
|
||||||
|
import Test exposing (..)
|
||||||
|
import Expect
|
||||||
|
|
||||||
|
|
||||||
tests : Test
|
tests : Test
|
||||||
tests =
|
tests =
|
||||||
suite
|
describe "Bob"
|
||||||
"ExerciseModuleName"
|
[ test "first test" <|
|
||||||
[ test "first test" (assertEqual True True)
|
\() ->
|
||||||
, test "second test" (assertEqual False False)
|
True
|
||||||
]
|
|> Expect.equal True
|
||||||
|
, test "second test" <|
|
||||||
|
\() ->
|
||||||
|
False
|
||||||
|
|> Expect.equal False
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
main : Program Never
|
main : Program Never
|
||||||
main =
|
main =
|
||||||
runSuite tests
|
run emit tests
|
||||||
|
|
||||||
|
|
||||||
|
port emit : ( String, Value ) -> Cmd msg
|
||||||
```
|
```
|
||||||
|
|
||||||
- All the tests for xElm exercises can be run from the top level of the repo with `bin/build.sh`. Please run this command before submitting your PR.
|
- All the tests for xElm exercises can be run from the top level of the repo with `bin/build.sh`. Please run this command before submitting your PR.
|
||||||
|
|
Loading…
Reference in a new issue