lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject cvs commit: jakarta-lucene/src/test/org/apache/lucene/search TestDateFilter.java
Date Wed, 08 May 2002 20:16:54 GMT
otis        02/05/08 13:16:54

  Modified:    src/test/org/apache/lucene/search TestDateFilter.java
  Log:
  - Fixed a bug in the test itself, caught by Doug.
    Duh, correct comment, but contradicting code.
  
  Revision  Changes    Path
  1.4       +2 -2      jakarta-lucene/src/test/org/apache/lucene/search/TestDateFilter.java
  
  Index: TestDateFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/search/TestDateFilter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestDateFilter.java	8 May 2002 19:48:04 -0000	1.3
  +++ TestDateFilter.java	8 May 2002 20:16:54 -0000	1.4
  @@ -73,7 +73,7 @@
     * DateFilter JUnit tests.
     *
     * @author Otis Gospodnetic
  -  * @version $Revision: 1.3 $
  +  * @version $Revision: 1.4 $
     */
   public class TestDateFilter
       extends TestCase
  @@ -155,7 +155,7 @@
   
    	Document doc = new Document();
    	// add time that is in the future
  - 	doc.add(Field.Keyword("datefield", DateField.timeToString(now - 888888)));
  + 	doc.add(Field.Keyword("datefield", DateField.timeToString(now + 888888)));
    	doc.add(Field.Text("body", "Today is a very sunny day in New York City"));
     	writer.addDocument(doc);
    	writer.optimize();
  
  
  

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message