fix(acp): remove orphaned S1 test (helper reverted) — keep main compiling

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Haitao Pan 2026-06-27 06:44:06 +08:00
parent 81f65e3308
commit 0a50621664

View File

@ -1,19 +0,0 @@
package acp
import "testing"
func TestS1DefaultExpectedArtifactDirs(t *testing.T) {
// 任务消息要求产出 md → 推断 requiredExts但未声明 expectedArtifactDirs → 应补缺省目录
c := openClawArtifactContractForParams(
map[string]any{}, map[string]any{"message": "采集最新AI资讯保存在md文件"})
if len(c.ExpectedArtifactDirs) == 0 {
t.Fatalf("expected default artifact dirs for an md-producing task, got none")
}
if !c.RequiresArtifactExport {
t.Fatalf("expected RequiresArtifactExport=true when default dirs applied")
}
// 纯聊天(无产物意图)→ 不应补目录、不应强制导出
c2 := openClawArtifactContractForParams(
map[string]any{}, map[string]any{"message": "你好,介绍一下你自己"})
if len(c2.ExpectedArtifactDirs) != 0 || c2.RequiresArtifactExport {
t.Fatalf("pure chat should not get default dirs / forced export, got dirs=%v export=%v", c2.ExpectedArtifactDirs, c2.RequiresArtifactExport)
}
}