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:
Adrien Grand 2013-12-13 15:42:39 +01:00
parent 36bd9cc432
commit 19c8d18b14
1 changed files with 1 additions and 1 deletions

View File

@ -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) {