Test that the judge's failure names a room of 0 where the records overflow its prompt
CI / tests (pull_request) Successful in 3m41s

This commit is contained in:
Lilleman
2026-11-20 01:36:22 +01:00
parent 840cb21fbc
commit ee44c99f28
+1 -1
View File
@@ -160,7 +160,7 @@ class JudgePrompt(unittest.TestCase):
def test_fails_naming_the_shortfall_where_the_records_leave_less_than_the_transcripts_floor(self):
failed = judge.judge_prompt(self.brief(self.LONG, 0, records="r" * (judge.JUDGE_PROMPT_CHARS + 1)))
self.assertIsInstance(failed, Failure)
for fact in ("400,000", "400,001", f"{judge.TRANSCRIPT_FLOOR:,}", f"by at least {judge.TRANSCRIPT_FLOOR + self.overhead() + 1:,}"):
for fact in ("leave 0 of the judge's 400,000", "400,001", f"{judge.TRANSCRIPT_FLOOR:,}", f"by at least {judge.TRANSCRIPT_FLOOR + self.overhead() + 1:,}"):
self.assertIn(fact, failed.reason)
def test_judge_once_returns_that_failure_without_starting_claude(self):