mirror of https://github.com/apache/lucene.git
revert this est change until we can fix geo API border cases (LUCENE-6956)
This commit is contained in:
parent
9d35aafc56
commit
b62c6715df
|
@ -434,7 +434,8 @@ public abstract class BaseGeoPointTestCase extends LuceneTestCase {
|
|||
} else {
|
||||
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) {
|
||||
|
@ -444,7 +445,8 @@ public abstract class BaseGeoPointTestCase extends LuceneTestCase {
|
|||
} else {
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue