MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / test_escaped_tab

Method test_escaped_tab

tests/test_json_parser.py:41–46  ·  view source on GitHub ↗

Escaped tabs should be properly unescaped.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

extract_jsonFunction · 0.90

Tested by

no test coverage detected