Commit 3185352
committed
fix(tooling): derive check-wildcard-fallthrough's self-test case count from its own ledger
The self-test verdict printed a transcribed `17 cases` while the body ran 18
assertions and the battery roster pinned 18 — a number nothing derived and
nothing compared. The literal was left wrong deliberately when the floor
landed, so that change could prove byte-identical output; correcting it is
this change.
The line now sums `batterySeen`, the same ledger the floor immediately above
evaluates, so the printed number and the floor can no longer disagree and a
block that stops running shrinks the count instead of leaving a stale literal
standing. What it counts is assertions that RAN, not `assert(` call sites in
the source — today both are 18, and the comment says which one is meant.
The in-place comment that explained why the literal was knowingly wrong, and
the roster's present-tense description of the verdict as transcribed, are both
rewritten: left standing next to a derived line they would tell the next
reader the opposite of what the file does.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vbw3RPgdtqesx4azk9SbW81 parent 0a61db1 commit 3185352
1 file changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
464 | | - | |
465 | | - | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
466 | 468 | | |
467 | 469 | | |
468 | 470 | | |
| |||
625 | 627 | | |
626 | 628 | | |
627 | 629 | | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
635 | 640 | | |
636 | 641 | | |
637 | 642 | | |
| |||
0 commit comments