test(scheduler-sim-diagnostics): close cross-cutting gaps for Requirement 6 (task 10.2)
Final validation task for the Human-Readable Units increment (tasks 7-10.1). Adds three tests closing gaps no prior task's own tests covered: - Cross-surface consistency (Requirement 6.5): a single info limit request against a byte-valued limit with both a configured setting and a live usage instance shows the SAME units convention in both lines, across mode switches -- neither task 8.2's nor task 9's own tests combined both surfaces in one capture. - Non-byte-valued exclusion (6.3): a new "slots"-resourced fixture (the first non-"mem" fixture in this file) proves the entire combined display is byte-for-byte identical across all three units modes. - Percentage exclusion (6.3) at the REPL-dispatch level: a percent limit's own percentage value survives real repl_dispatch()/ set-units switching unchanged, complementing test_limit.c's existing library-level proof of the same invariant. Full regression sweep: lib suite 368/368, scheduler suite 85/85, including test_repl_limit_table.c (35/35), test_repl_resource_table.c, test_repl_resource_formatting.c, and test_limit_plugin.c all unaffected. No production code changed. This closes out Requirement 6 (ACs 6.1-6.5) and reconfirms Requirement 5 (ACs 5.1-5.3) end-to-end. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RLSNJhNoULvVcUhXEFafQC
This commit is contained in:
parent
5125536657
commit
bf61f5954e
2 changed files with 314 additions and 1 deletions
|
|
@ -107,7 +107,7 @@
|
|||
- _Requirements: 6.1, 6.3, 6.4_
|
||||
- _Depends: 9_
|
||||
|
||||
- [ ] 10.2 Confirm units consistency, exclusion rules, and zero regression end to end
|
||||
- [x] 10.2 Confirm units consistency, exclusion rules, and zero regression end to end
|
||||
- A byte-valued limit's configured-setting display and its live usage display agree on units under every display mode, within one request for that limit's information
|
||||
- A limit whose constrained resource is not byte-valued, or whose own configured value is itself a percentage, is never subject to byte-unit scaling in either display
|
||||
- The complete pre-existing `info limit` test suite, and the complete pre-existing suite for every other `info` subcommand — including the two pre-existing, non-limit displays that share the same underlying formatting logic this requirement set retyped in task 7 — show zero output differences beyond what this requirement set intends
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue