fix: validate card business responses and trim help

This commit is contained in:
姚章浩
2026-08-13 15:10:09 +08:00
parent e5be9ee780
commit 4dbc20ee74
4 changed files with 44 additions and 11 deletions
+3 -4
View File
@@ -90,10 +90,9 @@ func TestControllerHelpIsHandledLocally(t *testing.T) {
if err != nil {
t.Fatal(err)
}
for _, want := range []string{"普通提问", "/setting", "/help"} {
if !strings.Contains(out, want) {
t.Fatalf("help=%q missing %q", out, want)
}
want := "设置回答语言:/setting language <auto|zh-CN|en|ja|ko|es>\n例如:/setting language en"
if out != want {
t.Fatalf("help=%q want %q", out, want)
}
}