Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example showing the except functions #14

Open
heueristik opened this issue Oct 9, 2024 · 0 comments
Open

Add example showing the except functions #14

heueristik opened this issue Oct 9, 2024 · 0 comments

Comments

@heueristik
Copy link
Contributor

heueristik commented Oct 9, 2024

Currently, we only show how to use the assert functions

juvix-test/README.md

Lines 9 to 30 in 3103c41

```
module Example;
import Stdlib.Prelude open;
import Test.JuvixUnit open;
tests : List Test :=
[testCase "1 == 1" (assertEqual "1 /= 1" 1 1)];
main : IO := runTestSuite (testSuite "Example" tests);
```
Compile and run the test suite:
``` shell
$ juvix compile Example.juvix
$ ./Example
Test suite 'Example'
1 == 1 OK
All tests from test suite 'Example' complete
Suite passed
```

but not how to use the except functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant