From 9b9b0a63398c370d103861cceb350b7618446a8e Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Tue, 15 Sep 2020 19:07:30 +0200 Subject: [PATCH] Fix corrupted umlaut characters. This was introduced back in 2009... --- .../queryparser/flexible/standard/TestQPHelper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java index 2a265e91708..717a01368eb 100644 --- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java +++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java @@ -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�rm term term", new MockAnalyzer(random(), MockTokenizer.WHITESPACE, false), - "t�rm term term"); - assertQueryEquals("�mlaut", new MockAnalyzer(random(), MockTokenizer.WHITESPACE, false), "�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");