mirror of https://github.com/apache/lucene.git
fix previous commit of wrong version of TestPhoneticFilter
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@804270 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6ff16abc0e
commit
9125046dec
|
@ -86,12 +86,12 @@ public class TestPhoneticFilter extends BaseTokenTestCase {
|
|||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue