From e4a8a0bca153b79ca42dd4fe2f2f9c1dfb6e4223 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Mon, 15 Jun 2026 14:26:32 -0400 Subject: [PATCH] test(thinking_trace): add test for half-width marker (doeh cleanup Phase 4.2) --- tests/test_thinking_trace.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_thinking_trace.py b/tests/test_thinking_trace.py index 2712d37f..b8a3a87d 100644 --- a/tests/test_thinking_trace.py +++ b/tests/test_thinking_trace.py @@ -57,6 +57,15 @@ def test_parse_thinking_with_empty_response(): assert response == "" +def test_parse_half_width_think_tag(): + raw = "This is DWARF debug info, not the actual disassembly.\n\nHere is the disassembly." + segments, response = parse_thinking_trace(raw) + assert len(segments) == 1 + assert segments[0].content == "This is DWARF debug info, not the actual disassembly." + assert segments[0].marker == "think" + assert response == "Here is the disassembly." + + if __name__ == "__main__": test_parse_xml_thinking_tag() test_parse_xml_thought_tag() @@ -65,4 +74,5 @@ if __name__ == "__main__": test_parse_empty_response() test_parse_multiple_markers() test_parse_thinking_with_empty_response() + test_parse_half_width_think_tag() print("All thinking trace tests passed!")