revert this est change until we can fix geo API border cases (LUCENE-6956)

This commit is contained in:
Michael McCandless 2016-01-24 16:48:51 -05:00 committed by Mike McCandless
parent 9d35aafc56
commit b62c6715df
1 changed files with 4 additions and 2 deletions

View File

@ -434,7 +434,8 @@ public abstract class BaseGeoPointTestCase extends LuceneTestCase {
} else { } else {
result = -90 + 180.0 * random().nextDouble(); result = -90 + 180.0 * random().nextDouble();
} }
return result; // TODO: we should not do this here! it weakens the test, and users don't pre-quantize the lat/lons they send us:
return unscaleLat(scaleLat(result));
} }
public double randomLon(boolean small) { public double randomLon(boolean small) {
@ -444,7 +445,8 @@ public abstract class BaseGeoPointTestCase extends LuceneTestCase {
} else { } else {
result = -180 + 360.0 * random().nextDouble(); result = -180 + 360.0 * random().nextDouble();
} }
return result; // TODO: we should not do this here! it weakens the test, and users don't pre-quantize the lat/lons they send us:
return unscaleLon(scaleLon(result));
} }
protected GeoRect randomRect(boolean small, boolean canCrossDateLine) { protected GeoRect randomRect(boolean small, boolean canCrossDateLine) {