You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(scripts): batch 7 pilot — floor check-sdui-manifest on its own table row labels (#15271)
* test(scripts): floor check-sdui-manifest's table-driven self-test on its own row labels
Batch 7 pilot for the assertion-floor card: the first of the ten
table-driven `scripts/**` self-tests, whose natural roster is the
table's own named rows rather than sections.
`failures === 0` was this self-test's only success condition, so "every
case held" and "the cases never ran" printed the same line. The sink
here (`failures++`) writes only on failure, so routing it through
`registerCase()` would invert the floor rather than install it: a fully
green run would register nothing.
So each row label in the literal `cases` table becomes a declared
battery with a floor of 1, and `registerCase(name)` is the first
statement of the driving loop body — attributing the case to the row
actually being run. The roster is a LITERAL the table is checked
against, never derived from it: a derived roster lets a deleted row
delete its own floor. The roster's own size is pinned, which is also
what refuses a duplicate row label at declaration time; a table
cross-check names which label collided.
No assertion condition touched, no control flow rewritten, the verdict
handshake kept as landed.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
* test(scripts): keep check-sdui-manifest's green self-test line byte-identical
The floor's evidence is the refusal, not the success line, so the
green-tree stdout stays exactly as landed. The failure line keeps its
corrected wording — floor breaches are counted in the same sink as case
failures, so "N case(s) failed" would have been inaccurate — but that
line is only reachable on a red run.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments