mirror of https://github.com/apache/lucene.git
fix bug in testLat/LonQuantization
This commit is contained in:
parent
b5ce2f67fd
commit
d4bb6912fd
|
@ -56,7 +56,7 @@ public class TestGeoEncodingUtils extends LuceneTestCase {
|
||||||
assertEquals(encoded, encodeLatitude(decoded));
|
assertEquals(encoded, encodeLatitude(decoded));
|
||||||
assertEquals(encoded, encodeLatitudeCeil(decoded));
|
assertEquals(encoded, encodeLatitudeCeil(decoded));
|
||||||
// test within the range
|
// test within the range
|
||||||
if (i != Integer.MAX_VALUE) {
|
if (encoded != Integer.MAX_VALUE) {
|
||||||
// this is the next representable 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 encode to the current integer
|
||||||
// all double values between (min .. max] should encodeCeil to the next 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, encodeLongitude(decoded));
|
||||||
assertEquals(encoded, encodeLongitudeCeil(decoded));
|
assertEquals(encoded, encodeLongitudeCeil(decoded));
|
||||||
// test within the range
|
// test within the range
|
||||||
if (i != Integer.MAX_VALUE) {
|
if (encoded != Integer.MAX_VALUE) {
|
||||||
// this is the next representable 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 encode to the current integer
|
||||||
// all double values between (min .. max] should encodeCeil to the next integer.
|
// all double values between (min .. max] should encodeCeil to the next integer.
|
||||||
|
|
Loading…
Reference in New Issue