Answer principles round 1: 0 🔴, 2 🟡 (0 misread); kill the surviving mutants and split repeat-read's tests to one behaviour each

This commit is contained in:
2026-10-28 13:05:00 +01:00
parent 8602b8a7ee
commit 488d9b0eee
2 changed files with 63 additions and 15 deletions
+6
View File
@@ -54,6 +54,12 @@ class FirstTimestampedLine(unittest.TestCase):
self.assertEqual(transcript.first_timestamped_line(b""), b"")
class CurrentThread(unittest.TestCase):
def test_a_parent_cycle_ends_the_thread(self):
looped = [{"uuid": "a", "parentUuid": "b"}, {"uuid": "b", "parentUuid": "a"}]
self.assertEqual([entry["uuid"] for entry in transcript.current_thread(looped)], ["a", "b"])
class HumanTurns(unittest.TestCase):
def test_counts_typed_turns_and_not_tool_results(self):
self.assertEqual(transcript.human_turns([