You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/03/27 17:16:42 UTC

svn commit: r1305870 - /lucene/dev/trunk/modules/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchAnalyzer.java

Author: rmuir
Date: Tue Mar 27 15:16:42 2012
New Revision: 1305870

URL: http://svn.apache.org/viewvc?rev=1305870&view=rev
Log:
LUCENE-3929: add a test demonstrating this works

Modified:
    lucene/dev/trunk/modules/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchAnalyzer.java

Modified: lucene/dev/trunk/modules/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/modules/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchAnalyzer.java?rev=1305870&r1=1305869&r2=1305870&view=diff
==============================================================================
--- lucene/dev/trunk/modules/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchAnalyzer.java (original)
+++ lucene/dev/trunk/modules/analysis/common/src/test/org/apache/lucene/analysis/fr/TestFrenchAnalyzer.java Tue Mar 27 15:16:42 2012
@@ -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 
   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");
+  }
 }