mirror of https://github.com/apache/lucene.git
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:
parent
8a9e20bfa1
commit
ed7a3a606c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue