lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rjer...@apache.org
Subject svn commit: r1624669 - in /lucene/dev/branches/lucene_solr_4_10: ./ lucene/ lucene/core/ lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java
Date Fri, 12 Sep 2014 22:50:55 GMT
Author: rjernst
Date: Fri Sep 12 22:50:54 2014
New Revision: 1624669

URL: http://svn.apache.org/r1624669
Log:
LUCENE-5939: Fix backcompat test to not look for numerics in <= 3.2 (instead of <= 3.1)

Modified:
    lucene/dev/branches/lucene_solr_4_10/   (props changed)
    lucene/dev/branches/lucene_solr_4_10/lucene/   (props changed)
    lucene/dev/branches/lucene_solr_4_10/lucene/core/   (props changed)
    lucene/dev/branches/lucene_solr_4_10/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java

Modified: lucene/dev/branches/lucene_solr_4_10/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_10/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java?rev=1624669&r1=1624668&r2=1624669&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_10/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java
(original)
+++ lucene/dev/branches/lucene_solr_4_10/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java
Fri Sep 12 22:50:54 2014
@@ -766,8 +766,8 @@ public class TestBackwardsCompatibility3
   public void testNumericFields() throws Exception {
     boolean testedSomething = false;
     for (String name : oldNames) {
-      if (name.compareTo("31") < 0) {
-        // we didn't have numeric fields in back compat indexes until 3.1
+      if (name.compareTo("32") < 0) {
+        // we didn't have numeric fields in back compat indexes until 3.2
         // https://issues.apache.org/jira/browse/LUCENE-2352
         
         continue;
@@ -780,7 +780,7 @@ public class TestBackwardsCompatibility3
       
       for (int id=10; id<15; id++) {
         ScoreDoc[] hits = searcher.search(NumericRangeQuery.newIntRange("trieInt", 4, Integer.valueOf(id),
Integer.valueOf(id), true, true), 100).scoreDocs;
-        assertEquals("wrong number of hits", 1, hits.length);
+        assertEquals("wrong number of hits for index " + name, 1, hits.length);
         Document d = searcher.doc(hits[0].doc);
         assertEquals(String.valueOf(id), d.get("id"));
         



Mime
View raw message