a few more tests, fix javadoc

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332362 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2005-11-10 19:49:52 +00:00
parent e9d4568cf5
commit 5bba415099
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,8 @@ import org.apache.lucene.analysis.standard.StandardTokenizer;
/**
* Test QueryParser's ability to deal with Analyzers that return more
* than one token per position.
* than one token per position or that return tokens with a position
* increment > 1.
*
* @author Daniel Naber
*/
@ -43,7 +44,10 @@ public class TestMultiAnalyzer extends TestCase {
// trivial, no multiple tokens:
assertEquals("foo", qp.parse("foo").toString());
assertEquals("foo", qp.parse("\"foo\"").toString());
assertEquals("foo foobar", qp.parse("foo foobar").toString());
assertEquals("\"foo foobar\"", qp.parse("\"foo foobar\"").toString());
assertEquals("\"foo foobar blah\"", qp.parse("\"foo foobar blah\"").toString());
// two tokens at the same position:
assertEquals("(multi multi2) foo", qp.parse("multi foo").toString());