This commit is contained in:
X-iZhang
2026-02-03 00:20:45 +00:00
parent f36fec0bf9
commit 3eec63a447
4 changed files with 25 additions and 18 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ class TestFormatToolCompact:
long_cmd = "x" * 60
result = format_tool_compact("execute", {"command": long_cmd})
assert len(result) < 70
assert result.endswith("...)")
assert result.endswith("\u2026)")
def test_read_file(self):
result = format_tool_compact("read_file", {"path": "src/main.py"})
@@ -128,7 +128,7 @@ class TestFormatToolCompact:
def test_unknown_tool_long_value(self):
result = format_tool_compact("custom_tool", {"key": "a" * 30})
assert "..." in result
assert "\u2026" in result
# === truncate ===