From 44bdb60e834ef015ee4cb25a6f0eba2a092291f0 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Wed, 27 Apr 2016 14:42:30 +0200 Subject: [PATCH] Relaxed the absolute error margin for floating-point value comparisons to 1e-4 --- test/correctness/tester.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/correctness/tester.cc b/test/correctness/tester.cc index 6c504b4e..51d83362 100644 --- a/test/correctness/tester.cc +++ b/test/correctness/tester.cc @@ -299,7 +299,7 @@ bool TestSimilarity(const T val1, const T val2) { // Set the allowed error margin for floating-point comparisons constexpr auto kErrorMarginRelative = T{0.025}; - constexpr auto kErrorMarginAbsolute = T{1.0e-6}; + constexpr auto kErrorMarginAbsolute = T{1.0e-4}; // Shortcut, handles infinities if (val1 == val2) {