Testing
Jaya test files use the .t suffix.
Run all tests:
./jpl --t
Run one test file:
./jpl --t tests/std/modules.t
Inside .t files, the test module is auto-bound and common helpers are available without a prefix:
assertEq(...)assertNil(...)compileAndLoad(...)
Example:
fn testAddsNumbers()
mod = compileAndLoad("export fn add(x, y) = x + y")
assertEq(mod.add(2, 3), 5)
end