Fix corrupted umlaut characters. This was introduced back in 2009...

This commit is contained in:
Dawid Weiss 2020-09-15 19:07:30 +02:00
parent 3134f10a42
commit 9b9b0a6339
1 changed files with 4 additions and 4 deletions

View File

@ -438,9 +438,9 @@ public class TestQPHelper extends LuceneTestCase {
assertQueryEquals("field=a", null, "a");
assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
assertQueryEquals("term term term", null, "term term term");
assertQueryEquals("t<EFBFBD>rm term term", new MockAnalyzer(random(), MockTokenizer.WHITESPACE, false),
"t<EFBFBD>rm term term");
assertQueryEquals("<EFBFBD>mlaut", new MockAnalyzer(random(), MockTokenizer.WHITESPACE, false), "<EFBFBD>mlaut");
assertQueryEquals("türm term term", new MockAnalyzer(random(), MockTokenizer.WHITESPACE, false),
"türm term term");
assertQueryEquals("ümlaut", new MockAnalyzer(random(), MockTokenizer.WHITESPACE, false), "ümlaut");
// FIXME: change MockAnalyzer to not extend CharTokenizer for this test
//assertQueryEquals("\"\"", new KeywordAnalyzer(), "");
@ -523,7 +523,7 @@ public class TestQPHelper extends LuceneTestCase {
}
public void testNumber() throws Exception {
// The numbers go away because SimpleAnalzyer ignores them
// The numbers go away because SimpleAnalyzer ignores them
assertMatchNoDocsQuery("3", null);
assertQueryEquals("term 1.0 1 2", null, "term");
assertQueryEquals("term term1 term2", null, "term term term");