mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-12 15:26:55 +08:00
feat: integrate NOFXi agent into dev
This commit is contained in:
25
agent/onboard_test.go
Normal file
25
agent/onboard_test.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package agent
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestIsDirectSetupCommand(t *testing.T) {
|
||||
cases := []struct {
|
||||
text string
|
||||
want bool
|
||||
}{
|
||||
{text: "setup", want: true},
|
||||
{text: "/setup", want: true},
|
||||
{text: "开始配置", want: false},
|
||||
{text: "/开始配置", want: false},
|
||||
{text: "创建全新的配置,杠杆你定", want: false},
|
||||
{text: "帮我配置一个 deepseek 模型", want: false},
|
||||
{text: "绑定交易所 okx", want: false},
|
||||
{text: "配置", want: false},
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
if got := isDirectSetupCommand(tc.text); got != tc.want {
|
||||
t.Fatalf("isDirectSetupCommand(%q) = %v, want %v", tc.text, got, tc.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user