Add tests to math and add info in readme how to contribute.

This commit is contained in:
Christoffer Lerno
2023-02-05 14:29:36 +01:00
parent 5a65a57e42
commit 4a102698b2
4 changed files with 154 additions and 5 deletions

View File

@@ -303,3 +303,12 @@ MIT licensed.
#### Editor plugins
Editor plugins can be found at https://github.com/c3lang/editor-plugins.
#### Contributing unit tests
1. Write the test, either adding to existing test files in `/test/unit/` or add
a new file. (If testing the standard library, put it in the `/test/unit/stdlib/` subdirectory).
2. Make sure that the test functions have the `@test` attribute.
3. Run tests and see that they pass. (Recommended settings: `c3c compile-test --safe -g1 -O0 test/unit`.
- in this example `test/unit/` is the relative path to the test directory, so adjust as required)
4. Make a pull request for the new tests.