ax_rd
5 hours ago 60eb89c12ee0661785395bff90940204b16dcb3a
internal/search/explore_test.go
@@ -29,7 +29,7 @@
// TestExploreKeywordExpansion 长 CJK 词拆 bigram(原词保留,ASCII/短词不拆;末尾去重保序)
func TestExploreKeywordExpansion(t *testing.T) {
   got := expandKeywords([]string{"电子秤补气失败", "补气", "abc"})
   got := ExpandCJKKeywords([]string{"电子秤补气失败", "补气", "abc"})
   want := []string{"电子秤补气失败", "电子", "子秤", "秤补", "补气", "气失", "失败", "abc"}
   if len(got) != len(want) {
      t.Fatalf("展开数量: got=%d want=%d (%v)", len(got), len(want), got)