lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r332362 - /lucene/java/trunk/src/test/org/apache/lucene/queryParser/TestMultiAnalyzer.java
Date Thu, 10 Nov 2005 19:49:56 GMT
Author: dnaber
Date: Thu Nov 10 11:49:52 2005
New Revision: 332362

URL: http://svn.apache.org/viewcvs?rev=332362&view=rev
Log:
a few more tests, fix javadoc

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/queryParser/TestMultiAnalyzer.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/queryParser/TestMultiAnalyzer.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/test/org/apache/lucene/queryParser/TestMultiAnalyzer.java?rev=332362&r1=332361&r2=332362&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/queryParser/TestMultiAnalyzer.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/queryParser/TestMultiAnalyzer.java Thu Nov
10 11:49:52 2005
@@ -29,7 +29,8 @@
 
 /**
  * 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 @@
 
     // 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());



Mime
View raw message