From 19c8d18b1489bcebafb4d5fcb022e03ece749550 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Fri, 13 Dec 2013 15:42:39 +0100 Subject: [PATCH] Relax a bit the accuracy tests on SloppyMaths. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests now ensure that the computed distance is correct within 1‰ instead of 1‱. --- src/test/java/org/apache/lucene/util/SloppyMathTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/lucene/util/SloppyMathTests.java b/src/test/java/org/apache/lucene/util/SloppyMathTests.java index dbead96c0cc..798b0ff7a6b 100644 --- a/src/test/java/org/apache/lucene/util/SloppyMathTests.java +++ b/src/test/java/org/apache/lucene/util/SloppyMathTests.java @@ -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) {