Answer stability round 1: 0 🔴, 1 🟡 (0 misread); list conftest.py in the help

This commit is contained in:
2026-11-27 22:58:51 +01:00
parent 58cc12b979
commit 3d49cfce40
4 changed files with 14 additions and 11 deletions
+4 -3
View File
@@ -37,9 +37,10 @@ No model judges anything: the bench runs programs, and reads Haiku's own stream.
- Check. The test command runs over the planted tree with each file that is no test as Haiku left it; a fix passes where it exits 0.
A test Haiku changed, removed or added doesn't count, and neither does a file under a `testdata` folder. The bench
tells a test by its path: a folder named `test`, `tests` or `__tests__`, or a file named `test_*.py`, `*_test.py`,
`*_test.go`, `*.test.*`, `*.spec.*` or `*Test.php`, or, in a JavaScript or TypeScript suffix, `*-test.*`, `*_test.*`,
`test-*.*` or `test.*`. A test of any other name counts as code, so Haiku's change to it stands. In a Rust file, each inline
`#[cfg(test)]` module stands as the planted file has it, and the rest is as Haiku left it. So does each `#[cfg(test)] mod name;` the planted file declares, and the file it
`conftest.py`, `*_test.go`, `*.test.*`, `*.spec.*` or `*Test.php`. It tells one more by the names `node --test` finds, in a
`.js`, `.cjs`, `.mjs`, `.ts`, `.cts` or `.mts` file: `*-test.*`, `*_test.*`, `test-*.*` and `test.*`. A test of any other
name counts as code, so Haiku's change to it stands. In a Rust file, each inline `#[cfg(test)]` module stands as the planted
file has it, and the rest is as Haiku left it. So does each `#[cfg(test)] mod name;` the planted file declares, and the file it
names: `name.rs` or `name/mod.rs`, in the declaring file's folder or in a folder named for that file without `.rs`. Where
Haiku's file lacks a module of the planted file's or a declaration as written there, or the planted file has inline modules and Haiku's cannot be
told apart, the planted file stands whole; where the planted file's inline modules cannot be told apart, or it has none and