Skip to content

Commit 9eb5e63

Browse files
authored
Merge pull request #169 from GongHeng2017/master
ChineseTokenizerTest unit test error caused by #160
2 parents b12f069 + 0739c90 commit 9eb5e63

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)