feat(scheduler-sim-discrete-clock): remove the REPL speed parameter (task 2.2)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Rongsong Shen 2026-09-29 04:53:20 +00:00
parent 3a6b503f07
commit 05320e777b
Signed by untrusted user: rshen
GPG key ID: 80533536B0EB651C
8 changed files with 257 additions and 147 deletions

View file

@ -5,8 +5,8 @@
* into four labeled sections, aligns every command's description to one
* consistent column position throughout (not independently hand-padded per
* line), lists `info config` together with the other `info` subcommands in
* the state-inspection section, lists `set units` alongside `set speed`/
* `set output`/`set verify` in the snapshot-and-parameters section, and
* the state-inspection section, lists `set units` alongside `set output`/
* `set verify` in the snapshot-and-parameters section, and
* enumerates the complete set of valid `break <EVENT_TYPE>` values on its
* `break` line. `break`'s own unrecognized-event-type error message
* (Requirement 7.5) is NOT covered here -- that lives in the sibling
@ -552,8 +552,9 @@ static const char* BP_KIND_TOKENS[] = {
/* command's line falling within its correct section's bounds -- including */
/* `info config` landing inside State Inspection next to its `info` */
/* siblings (Requirement 7.3), and `set units` landing inside Snapshot & */
/* Parameters next to `set speed`/`set output`/`set verify` (Requirement */
/* 7.1/7.4's section-organization half). */
/* Parameters next to `set output`/`set verify` (Requirement 7.1/7.4's */
/* section-organization half), and no `set speed` line anywhere (the REPL */
/* speed parameter was removed, scheduler-sim-discrete-clock Req 3.3). */
/* ---------------------------------------------------------------------- */
static void test_help_groups_commands_into_four_labeled_sections_in_order(
@ -646,13 +647,13 @@ static void test_help_groups_commands_into_four_labeled_sections_in_order(
}
}
/* Snapshot & Parameters: snapshot/set speed/set output/set verify/set
/* Snapshot & Parameters: snapshot/set output/set verify/set
* units, all after Snapshot & Parameters's own label (last section, so
* only a lower bound applies). `set units`'s exact argument spelling is
* deliberately not pinned here -- only its existence and placement. */
{
const char* fields[] = {
"snapshot [FILE]", "set speed <N>", "set output <FILE>|off",
"snapshot [FILE]", "set output <FILE>|off",
"set verify on|off", "set units",
};
size_t i;
@ -669,6 +670,11 @@ static void test_help_groups_commands_into_four_labeled_sections_in_order(
}
}
TEST_ASSERT_NULL_MESSAGE(strstr(captured, "set speed"),
"help must not list the removed `set speed` "
"parameter (scheduler-sim-discrete-clock Req "
"3.3)");
free(captured);
printf("test_help_groups_commands_into_four_labeled_sections_in_order: "
@ -708,7 +714,6 @@ static void test_help_uses_one_consistent_column_width_throughout(void)
"info summary",
"info config",
"snapshot [FILE]",
"set speed <N>",
"set output <FILE>|off",
"set verify on|off",
};