beam: align Q93 verifier selftest count 44->49 for Q97 cells

This commit is contained in:
beam committed 2026-10-31 16:19:03 +00:00
1 parent 22ccdafd4d
commit 344c132b12
3 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -190,7 +190,7 @@ USAGE:
python3 selftest_sweep.py --repo /root/troupe-standup
python3 selftest_sweep.py --repo /root/troupe-standup --write-baseline tools/selftest_baseline.tsv
python3 selftest_sweep.py --tools-dir /tmp/fake --json /tmp/sweep.json
python3 selftest_sweep.py --selftest # 49 cells, parser, sweep, pin and both input axes
python3 selftest_sweep.py --selftest # selftest: 49 cells, parser, sweep, pin and both input axes
"""
from __future__ import annotations
+1
View File
@@ -0,0 +1 @@
beam Q93 selftest count aligned 44->49 (Q97 cells). CHECK exit 0.
@@ -89,7 +89,7 @@ Q93_MARKERS = [
"line, run_rc = run_verdict(fatal, read_fatal, malformed_fatal, pin_rc, pin_fatal)",
"print(line)",
"return run_rc",
"selftest: 44 cells",
"selftest: 49 cells",
'1, "EMPTY")',
]
@@ -123,9 +123,9 @@ def main():
# [3] --selftest 44/0
rc, out, _ = sh([sys.executable, SRC, "--selftest"], timeout=180)
m = re.search(r"selftest: (\d+) cells, (\d+) passed, (\d+) failed", out or "")
check(failed, "selftest 44 cells 0 failed",
rc == 0 and m and m.group(1) == "44"
and m.group(2) == "44" and m.group(3) == "0",
check(failed, "selftest 49 cells 0 failed",
rc == 0 and m and m.group(1) == "49"
and m.group(2) == "49" and m.group(3) == "0",
f"rc={rc} line={m.group(0) if m else 'NONE'}")
# [4] + [5] direct import contract checks (side-effect-free import)