You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by nk...@apache.org on 2016/04/07 22:23:15 UTC

lucene-solr:master: fix bug in testLat/LonQuantization

Repository: lucene-solr
Updated Branches:
  refs/heads/master b5ce2f67f -> d4bb6912f


fix bug in testLat/LonQuantization


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/d4bb6912
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d4bb6912
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d4bb6912

Branch: refs/heads/master
Commit: d4bb6912fd7123db910a1fda72c3fce5e15587fa
Parents: b5ce2f6
Author: nknize <nk...@apache.org>
Authored: Thu Apr 7 15:23:04 2016 -0500
Committer: nknize <nk...@apache.org>
Committed: Thu Apr 7 15:23:04 2016 -0500

----------------------------------------------------------------------
 .../src/test/org/apache/lucene/geo/TestGeoEncodingUtils.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d4bb6912/lucene/core/src/test/org/apache/lucene/geo/TestGeoEncodingUtils.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/test/org/apache/lucene/geo/TestGeoEncodingUtils.java b/lucene/core/src/test/org/apache/lucene/geo/TestGeoEncodingUtils.java
index 3b71c63..f13e6c7 100644
--- a/lucene/core/src/test/org/apache/lucene/geo/TestGeoEncodingUtils.java
+++ b/lucene/core/src/test/org/apache/lucene/geo/TestGeoEncodingUtils.java
@@ -56,7 +56,7 @@ public class TestGeoEncodingUtils extends LuceneTestCase {
       assertEquals(encoded, encodeLatitude(decoded));
       assertEquals(encoded, encodeLatitudeCeil(decoded));
       // test within the range
-      if (i != Integer.MAX_VALUE) {
+      if (encoded != Integer.MAX_VALUE) {
         // this is the next representable value
         // all double values between [min .. max) should encode to the current integer
         // all double values between (min .. max] should encodeCeil to the next integer.
@@ -105,7 +105,7 @@ public class TestGeoEncodingUtils extends LuceneTestCase {
       assertEquals(encoded, encodeLongitude(decoded));
       assertEquals(encoded, encodeLongitudeCeil(decoded));
       // test within the range
-      if (i != Integer.MAX_VALUE) {
+      if (encoded != Integer.MAX_VALUE) {
         // this is the next representable value
         // all double values between [min .. max) should encode to the current integer
         // all double values between (min .. max] should encodeCeil to the next integer.