test: match compact skill warning count · openclaw/openclaw@7517fe5
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -177,7 +177,8 @@ describe("applySkillsPromptLimits (via buildWorkspaceSkillsPrompt)", () => {
|
177 | 177 | expect(prompt).toContain("skill-0"); |
178 | 178 | const [included, total] = requireIncludedCounts(prompt); |
179 | 179 | expect(included).toBeLessThan(total); |
180 | | -expect(included).toBeGreaterThan(0); |
| 180 | +expect(total).toBe(skills.length); |
| 181 | +expect(prompt.match(/<skill>/g)?.length ?? 0).toBe(included); |
181 | 182 | }); |
182 | 183 | |
183 | 184 | it("compact preserves all skills where full format would drop some", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。