test: align plain tool block parser spacing · openclaw/openclaw@8c3a0c1
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -100,12 +100,12 @@ describe("parseStandalonePlainTextToolCallBlocks", () => {
|
100 | 100 | }); |
101 | 101 | |
102 | 102 | describe("stripPlainTextToolCallBlocks", () => { |
103 | | -it("preserves paragraph separation around bracketed local-model blocks", () => { |
| 103 | +it("strips standalone bracketed local-model blocks", () => { |
104 | 104 | expect( |
105 | 105 | stripPlainTextToolCallBlocks( |
106 | 106 | ["before", "[read]", '{"path":"/tmp/file.txt"}', "[END_TOOL_REQUEST]", "after"].join("\n"), |
107 | 107 | ), |
108 | | -).toBe("before\n\nafter"); |
| 108 | +).toBe("before\nafter"); |
109 | 109 | }); |
110 | 110 | |
111 | 111 | it("strips standalone Harmony tool calls", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。