diff --git a/modules/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchAnalyzer.java b/modules/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchAnalyzer.java index c395246b685..0d80d6adf76 100644 --- a/modules/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchAnalyzer.java +++ b/modules/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchAnalyzer.java @@ -19,6 +19,7 @@ package org.apache.lucene.analysis.fr; import java.io.IOException; +import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.BaseTokenStreamTestCase; import org.apache.lucene.analysis.util.CharArraySet; import org.apache.lucene.util.Version; @@ -264,4 +265,11 @@ public class TestFrenchAnalyzer extends BaseTokenStreamTestCase { public void testRandomStrings() throws Exception { checkRandomData(random, new FrenchAnalyzer(TEST_VERSION_CURRENT), 10000*RANDOM_MULTIPLIER); } + + /** test accent-insensitive */ + public void testAccentInsensitive() throws Exception { + Analyzer a = new FrenchAnalyzer(TEST_VERSION_CURRENT); + checkOneTermReuse(a, "sécuritaires", "securitair"); + checkOneTermReuse(a, "securitaires", "securitair"); + } }