| @@ -15,7 +15,7 @@ |
| 15 | 15 | |
| 16 | 16 | **Left, deliberately** (each entry says why): engineering review of the `unsafe` boundary and the leak counter's inlining (M7); `louise_rt/src/sched.rs` unsplit while its revisions are under review (M6); constructor tags written as numbers, now guarded by a test (M4); `louise_core::entry`, `runnable` and `louise_perceus::verify` returning `String` (L4); the interpreter's scheduler `request` as one `match` (M6). |
| 17 | 17 | |
| 18 | | −**Open findings** (below): N1 (`@derive(module.Trait)` does not parse), N2 (trait method bodies ignored; needs a language decision), N3 (match compilation repeats tests; needs review), N5 (the language server never reloads a package), N6 (`louise check` skips `test/`), N7 (`louise test` runs the dependencies' tests). Each changes behaviour, so none is in these PRs. |
| 18 | +**Open findings** (below): N1 (`@derive(module.Trait)` does not parse), N2 (trait method bodies ignored; needs a language decision), N3 (match compilation repeats tests; needs review), N5 (the language server never reloads a package), N6 (`louise check` skips `test/`) (N7 was fixed in PR #107). Each changes behaviour, so none is in these PRs. |
| 19 | 19 | |
| 20 | 20 | Audit of `main` at `f2b02b7` (2026-10-09). It covers the compiler crates, `runtime/louise_rt`, `runtime/louise-ffi`, `std/`, `scripts/` and the test harnesses. Every finding was checked against the code. Two findings (H2, M5) were reproduced by running `louise` on small programs, written outside the repository. |
| 21 | 21 | |
| @@ -373,9 +373,10 @@ The reference interpreter duplicates the runtime's semantics on purpose: it is t |
| 373 | 373 | - [ ] **N6. `louise check` does not check a package's `test/`.** Size **S**, PR: a behaviour change. |
| 374 | 374 | - `louise check` loads `src/` only, so a test module with a type error passes `check` and fails `louise test` (reproduced: `pub fn broken() -> Int { "no" }` under `test/`). The language server, since M5, does check `test/`, as ADR 0001's Revision 1 says ("Test functions are type-checked with everything else, so the LSP sees them"). |
| 375 | 375 | - **The fix:** load the tests in `check` (`load(…, tests: true, …)`). Left as is because it reports errors in programs that `check` accepts today. |
| 376 | | −- [ ] **N7. `louise test` runs the dependencies' inline tests too.** Size **S**, PR: a behaviour change, needs a decision. |
| 376 | +- [x] **N7. `louise test` runs the dependencies' inline tests too.** Size **S**, PR: a behaviour change, needs a decision. |
| 377 | 377 | - For a package directory it runs the tests of every module outside `std`, which includes its dependencies' modules (reproduced: a path dependency's `@test` in its `src/lib.lse` runs with the package's). The repository shows it: `louise test --native` in `examples/http_demo` also runs `argon2.each_parameter_reaches_the_c_library`, the in-file test of its `argon2` dependency. |
| 378 | 378 | - **The fix:** run the tests of the root package's modules only (those `Db::load_resolved` names without a dependency prefix), and decide whether a flag runs the dependencies'. Left as is: it changes which tests run. |
| 379 | + - **Status (PR #107, done; decided by the project owner):** a package's dependencies' tests do not run. `louise test` keeps the modules that are not a dependency's (`<dep>` or `<dep>/...`), and there is no flag to run them: a dependency runs its own tests from its directory. Tested by `packages.rs::tests_of_dependencies_do_not_run`. |
| 379 | 380 | |
| 380 | 381 | ## Deliberate choices, not defects |
| 381 | 382 | |