Files
ww/lib/regex/wb/regex_test.ww
Hojun-Cho 4c52660bab lib/regex: rehome private-touching @tests to in-package regex_whitebox.ww
White-box @tests move into a colocated 'package regex' file (Hare
+test.ha analogue; #6 non-T drop plays the build-tag role), black-box
@tests stay in package regex_test — Go's foo/foo_test split. The
wb/ stub driver is documented-temporary scaffolding: a same-dir
importer file-resolves to regex.ww before dir-enumeration, so only a
different-dir import bundles the whitebox sibling (task #33 retires
it). CLAUDE.md rule-9 carve-out updated (#5 closed, gate was #6).
2026-06-11 09:32:44 +09:00

21 lines
1.1 KiB
Plaintext

// 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;