Answer the fifth round's nits: cycle holds worker runs, a test ties --help's limits to the constants

This commit is contained in:
2026-10-03 01:34:25 +02:00
parent 9252884a55
commit 4eec8d74ff
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -529,6 +529,12 @@ class LoopRuns(unittest.TestCase):
self.assertEqual(reload.exec_if_edited(launcher, "stale", main.LoopRun(1, "/r", "do it"), fake.effects()), Stop(1, "could not reload loop-claude: No such file or directory; rerun loop-claude <task>"))
class HelpLimits(unittest.TestCase):
def test_help_states_the_limits_the_code_holds(self):
self.assertIn(f"last {judge.JUDGED_TRANSCRIPT_TAIL:,} characters", main.__doc__)
self.assertIn(f"up to {['one', 'two', 'three', 'four'][states.RECORDS_ANSWERS_PER_CYCLE - 1]}\ntimes a cycle", main.__doc__)
class ExitContract(unittest.TestCase):
def test_every_exit_1_stop_has_its_clause_in_help(self):
read, git, premises_ = "a transcript cannot be read or archived", "git cannot start or finds no checkout", "README.md holds no premises"