Skip to content

Commit 0739c90

Browse files
committed
fix: fix a unit test error
ChineseAnalyzer now supports numeric Log: Bug:
1 parent b12f069 commit 0739c90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/contrib/analyzers/common/analysis/cn/ChineseTokenizerTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ TEST_F(ChineseTokenizerTest, testNumerics) {
115115

116116
checkAnalyzesTo(justTokenizer, UTF8_TO_STRING(input), newCollection<String>(UTF8_TO_STRING(token1), L"1234"));
117117

118-
// in this case the ChineseAnalyzer (which applies ChineseFilter) will remove the numeric token.
118+
// in this case the ChineseAnalyzer (which applies ChineseFilter) will not remove the numeric token.
119119
AnalyzerPtr a = newLucene<ChineseAnalyzer>();
120-
checkAnalyzesTo(a, UTF8_TO_STRING(input), newCollection<String>(UTF8_TO_STRING(token1)));
120+
checkAnalyzesTo(a, UTF8_TO_STRING(input), newCollection<String>(UTF8_TO_STRING(token1), L"1234"));
121121
}
122122

123123
/// ChineseTokenizer tokenizes english similar to SimpleAnalyzer.

0 commit comments

Comments
 (0)