1
0
Fork 0
forked from fun/fun

Some more stdlib fun and example code and cosmetic changes. (0.38.15)

This commit is contained in:
Johannes Findeisen 2026-02-19 21:50:24 +01:00
commit 9016b207b8
12 changed files with 330 additions and 4 deletions

View file

@ -25,7 +25,7 @@ Release profile example:
```
cmake --build build_release --target test_opcodes && ./build/test_opcodes
``>
```
If `fun_test` exists in your configuration:
@ -45,7 +45,8 @@ ctest --test-dir build -j
- C/C++/VM-side tests: look for existing tests under `src` or `spec` and mirror the structure. Add a new source and register it in CMake with an executable or via `add_test()`.
- Fun-level examples as tests: minimal scripts under `examples/` can act as smoke tests and are runnable via `./play.fun`. Consider adding a new example for new features and have CI invoke a subset.
Guidelines:
### Guidelines:
- Keep each test focused; prefer several small tests over one monolith.
- Avoid nondeterminism; set seeds where randomness is involved.
- Make tests independent of the working directory unless the behavior under test is precisely path resolution.