You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rj...@apache.org on 2014/09/13 00:50:55 UTC

svn commit: r1624669 - in /lucene/dev/branches/lucene_solr_4_10: ./ lucene/ lucene/core/ lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java

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"));