Answer prose round 1: 0 🔴, 12 🟡 (0 misread); keep a {} line as an entry, point handed_on and parked_through at the docstrings that hold their rules, split news_after's two kinds of news, say what each parameter is, reword item 517's way out, and report a .tar left behind as its own failure

This commit is contained in:
2026-11-23 02:30:59 +01:00
parent ba50eacafe
commit 83194a11a5
14 changed files with 36 additions and 30 deletions
+2 -2
View File
@@ -100,8 +100,8 @@ class Parse(unittest.TestCase):
self.assertIsNone(entries.parse_entry("[1, 2]"))
def test_a_stream_parses_into_an_entry_per_line_that_is_a_json_object(self):
raw = b'{"type": "user", "message": {"content": "do it"}}\nnot json\n\n{"type": "summary"}\n'
self.assertEqual(entries.entries_of(raw), [entries.HumanTurn(text="do it"), entries.Entry()])
raw = b'{"type": "user", "message": {"content": "do it"}}\nnot json\n\n{"type": "summary"}\n{}\n'
self.assertEqual(entries.entries_of(raw), [entries.HumanTurn(text="do it"), entries.Entry(), entries.Entry()])
self.assertEqual(entries.entries_of(b""), [])