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:
Yonik Seeley 2009-08-14 15:52:24 +00:00
parent 6ff16abc0e
commit 9125046dec
1 changed files with 5 additions and 5 deletions

View File

@ -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
}