test: make T0 harness results complete

This commit is contained in:
2026-08-05 18:19:40 +09:00
parent 3d79735964
commit 0bb1f86c14
14 changed files with 1944 additions and 281 deletions

View File

@@ -7,8 +7,8 @@
// unexported internals (thread/newmatch, run_thread / add_thread /
// delete_thread / search, find_last_groupstart / shift /
// parse_repetition, is_consuming_inst) — lives in
// lib/regex/regex_whitebox.ww (`package regex`, unified with regex.ww),
// run via the lib/regex/wb/ driver.
// lib/regex/regex_whitebox.ww (`package regex`, unified with regex.ww) and
// runs as a separate root-package binary.
//
// Fold 2a ports compile()'s lit/any/match arms only; exec lives in
// later folds, so the compile_* cases pin the emitted inst PROGRAM

View File

@@ -10,14 +10,12 @@
// the non-T @test drop, #6). Load-bearing ww-compiler coverage (drove
// #34/#38/#44/#45/#48), not black-box-reachable.
//
// `_whitebox.ww` (NOT *_test.ww) is the ww convention for an in-package
// white-box test file: the enumerator skips *test.ww, so the non-suffixed
// name is what keeps this a bundled regex module source. It is exercised
// by the sibling external driver lib/regex/wb/regex_test.ww, whose
// different-dir `import regex` dir-resolves and bundles this file (a
// same-dir import file-resolves regex.ww only — probe E; task #33 would
// delete the driver). The public-API @tests stay black-box in
// lib/regex/regex_test.ww (Go's foo / foo_test split; CLAUDE.md rule-9).
// `_whitebox.ww` (NOT *_test.ww) keeps this file in the production
// enumerator's root-package assembly until package-aware testing can classify
// same-package `*_test.ww` files (T1). The T0 gate resolves `regex` as the root
// directory so -T sees these tests directly; importing regex as a dependency
// would strip them. Public-API tests remain a separate `package regex_test`
// binary in lib/regex/regex_test.ww (CLAUDE.md rule 9).
package regex;
import io;

View File

@@ -1,20 +0,0 @@
// wb/regex_test — DOCUMENTED-TEMPORARY scaffolding (rule-7), NOT part of
// the blessed white-box convention: the permanent shape is the colocated
// lib/regex/regex_whitebox.ww (`package regex`) file alone. This driver
// only exists to RUN it, and task #33 ("resolver: dir-enumerate same-dir
// same-package siblings on import") DELETES this file when it lands — the
// true E-endpoint.
//
// Why it is load-bearing until then, not incidental: a `import regex` from
// a file sitting IN lib/regex/ (e.g. regex_test.ww) FILE-resolves to the
// sibling regex.ww and pulls ONLY that file, so the colocated
// regex_whitebox.ww is never bundled and its @tests are never collected
// (probe E, negative). Placed in a DIFFERENT dir with no regex.ww to
// shadow, this driver's `import regex` instead DIRECTORY-resolves the
// lib/regex package and bundles every non-*test.ww member — regex.ww +
// regex_whitebox.ww — unifying them so -T collects the white-box @tests.
// The dir is `wb/`, NOT `test/`: a lib/<mod>/test/ subdir would shadow the
// lib/test runner module in the -T auto-bundle search path (task #32).
package regex_test;
import regex;