diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-04-27 14:42:30 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-04-27 14:42:30 +0200 |
commit | 44bdb60e834ef015ee4cb25a6f0eba2a092291f0 (patch) | |
tree | b231207ce27f959666a874fa45c96442a518fef5 /test | |
parent | 226e834d0a6569f8142ab0cde14e6e273486a277 (diff) |
Relaxed the absolute error margin for floating-point value comparisons to 1e-4
Diffstat (limited to 'test')
-rw-r--r-- | test/correctness/tester.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |