test(core): every sub-reference names a part its record has
`sub_refs` scans every tracked file outside plan/ and checks each `BS-<area>-<n> statement k`, `invariant k` and `scenario k` (a list, a range, a parenthesised or comment-wrapped form, or a continuation on the same id such as "invariant 2 and statement 11") against the pinned record: k must lie within the length of that list. It also fails the old vocabulary after a bookspec id (item, rule, INVARIANT, SCENARIO, r, or a miscased word) when a number follows, so S-E's leftover forms cannot creep back. The number of references checked is printed (328) and floored (320); the self-tests refuse `BS-entry-1 statement 99`, a list or range with one bad number, a wrapped reference, a bad continuation and every old form, and accept the forms the records do have. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e41cc3a161
commit
d26a75b2ae
2 files changed
+423
No files matched your search
@@ -96,4 +96,5 @@ mod rules_md;
|
||||
mod run;
|
||||
mod source_refs;
|
||||
mod sources;
|
||||
mod sub_refs;
|
||||
mod traceability;
|
||||
Reference in new issue
Block a user