don't pre-quantize our randomly generated lat/lon: this weakens test coverage

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1725530 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2016-01-19 14:29:25 +00:00
parent 8a9e20bfa1
commit ed7a3a606c
1 changed files with 2 additions and 4 deletions

View File

@ -434,8 +434,7 @@ public abstract class BaseGeoPointTestCase extends LuceneTestCase {
} else {
result = -90 + 180.0 * random().nextDouble();
}
// 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));
return result;
}
public double randomLon(boolean small) {
@ -445,8 +444,7 @@ public abstract class BaseGeoPointTestCase extends LuceneTestCase {
} else {
result = -180 + 360.0 * random().nextDouble();
}
// 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));
return result;
}
protected GeoRect randomRect(boolean small, boolean canCrossDateLine) {