lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r804265 - /lucene/solr/trunk/src/test/org/apache/solr/analysis/DoubleMetaphoneFilterTest.java
Date Fri, 14 Aug 2009 15:43:29 GMT
Author: yonik
Date: Fri Aug 14 15:43:28 2009
New Revision: 804265

URL: http://svn.apache.org/viewvc?rev=804265&view=rev
Log:
fix double metaphone test to match current behavior

Modified:
    lucene/solr/trunk/src/test/org/apache/solr/analysis/DoubleMetaphoneFilterTest.java

Modified: lucene/solr/trunk/src/test/org/apache/solr/analysis/DoubleMetaphoneFilterTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/analysis/DoubleMetaphoneFilterTest.java?rev=804265&r1=804264&r2=804265&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/analysis/DoubleMetaphoneFilterTest.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/analysis/DoubleMetaphoneFilterTest.java Fri
Aug 14 15:43:28 2009
@@ -97,7 +97,7 @@
         new String[] { "12345", "#$%@#^%&" });
     TokenStream filter = new DoubleMetaphoneFilter(stream, 8, false);
 
-    assertNull(filter.next(new Token()));
+    assertEquals("12345", filter.next(new Token()).term());
     
     // should have something after the stream
     stream = new IterTokenStream(



Mime
View raw message