Escaped tabs should be properly unescaped.
(self)
| 39 | assert result["args"]["content"] == "line1\nline2" |
| 40 | |
| 41 | def test_escaped_tab(self): |
| 42 | """Escaped tabs should be properly unescaped.""" |
| 43 | raw = '{"name": "write_file", "args": {"content": "col1\\tcol2"}}' |
| 44 | result = extract_json(raw) |
| 45 | assert result is not None |
| 46 | assert result["args"]["content"] == "col1\tcol2" |
| 47 | |
| 48 | def test_escaped_quote(self): |
| 49 | """Escaped quotes should be properly unescaped.""" |
nothing calls this directly
no test coverage detected