Relax a bit the accuracy tests on SloppyMaths.
Tests now ensure that the computed distance is correct within 1‰ instead of 1‱.
This commit is contained in:
parent
36bd9cc432
commit
19c8d18b14
|
@ -58,7 +58,7 @@ public class SloppyMathTests extends ElasticsearchTestCase {
|
|||
}
|
||||
|
||||
private static double maxError(double distance) {
|
||||
return distance / 10000.0;
|
||||
return distance / 1000.0;
|
||||
}
|
||||
|
||||
private void testSloppyMath(DistanceUnit unit, double...deltaDeg) {
|
||||
|
|
Loading…
Reference in New Issue