Add testing section to roc-for-elm-programmers

This commit is contained in:
Richard Feldman 2022-12-08 06:09:53 -05:00
parent 747fbaab71
commit 0f0b57b689
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -1240,6 +1240,14 @@ If you put these into a hypothetical Roc REPL, here's what you'd see:
28 : Int *
```
## Testing
Instead of a separate testing tool, Roc has a built-in `expect` keyword, which
you can use in conjunction with `roc test` to run tests.
See [the tutorial section on testing](https://www.roc-lang.org/tutorial#tests-and-expectations)
for details.
## Abilities
`comparable`, `appendable`, and `number` don't exist in Roc.