lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r804270 - /lucene/solr/trunk/src/test/org/apache/solr/analysis/TestPhoneticFilter.java
Date Fri, 14 Aug 2009 15:52:25 GMT
Author: yonik
Date: Fri Aug 14 15:52:24 2009
New Revision: 804270

URL: http://svn.apache.org/viewvc?rev=804270&view=rev
Log:
fix previous commit of wrong version of TestPhoneticFilter

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

Modified: lucene/solr/trunk/src/test/org/apache/solr/analysis/TestPhoneticFilter.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/analysis/TestPhoneticFilter.java?rev=804270&r1=804269&r2=804270&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/analysis/TestPhoneticFilter.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/analysis/TestPhoneticFilter.java Fri Aug 14
15:52:24 2009
@@ -86,12 +86,12 @@
 
     PhoneticFilter filter = new PhoneticFilter( 
         new IterTokenStream(stream.iterator()), enc, "text", inject );
-    
-    for( Token t : output ) {
-      Token got = filter.next(t);
-      // System.out.println("##### got="+got);
 
-      assertEquals( new String(t.termBuffer(), 0, t.termLength()), new String(got.termBuffer(),
0, got.termLength()));
+    Token got = new Token();
+    for( Token t : output ) {
+      got = filter.next(got);
+      // System.out.println("##### expect=" + t + " got="+got);
+      assertEquals( t.term(), got.term());
     }
     assertNull( filter.next() );  // no more tokens
   }



Mime
View raw message