From 881003d90bd76cf97095108c9d842cf360638f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 8 Mar 2020 23:04:14 +0100 Subject: [PATCH] Test: adapt tests to change in TestSuite float epsilon precisions. --- src/Magnum/Animation/Test/PlayerTest.cpp | 2 +- src/Magnum/Math/Test/FunctionsTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Animation/Test/PlayerTest.cpp b/src/Magnum/Animation/Test/PlayerTest.cpp index e358bf24d..670581814 100644 --- a/src/Magnum/Animation/Test/PlayerTest.cpp +++ b/src/Magnum/Animation/Test/PlayerTest.cpp @@ -107,7 +107,7 @@ const struct { } RunFor100YearsData[]{ {"0", 0.0f, {}, false, false}, {"1 minute", 60.0f, std::chrono::minutes(1), false, false}, - {"5 minutes", 5.0f*60.0f, std::chrono::minutes{5}, true, false}, + {"5 minutes", 5.0f*60.0f, std::chrono::minutes{5}, false, false}, {"30 minutes", 30.0f*60.0f, std::chrono::minutes{30}, true, false}, {"1 hour", 60.0f*60.0f, std::chrono::minutes{60}, true, false}, {"1 day", 24.0f*60.0f*60.0f, std::chrono::minutes{24*60}, true, true}, diff --git a/src/Magnum/Math/Test/FunctionsTest.cpp b/src/Magnum/Math/Test/FunctionsTest.cpp index 5803d6f4b..5c080839d 100644 --- a/src/Magnum/Math/Test/FunctionsTest.cpp +++ b/src/Magnum/Math/Test/FunctionsTest.cpp @@ -543,7 +543,7 @@ template void FunctionsTest::sincos() { /* For GCC's __builtin_sincos this verifies that all specializations are correct */ CORRADE_COMPARE(Math::sincos(Math::Deg(T(30.0))).first, T(0.5)); - CORRADE_COMPARE(Math::sincos(Math::Deg(T(30.0))).second, T(0.8660254037844386)); + CORRADE_COMPARE(Math::sincos(Math::Deg(T(30.0))).second, T(0.866025403784438647l)); } void FunctionsTest::sinCosSeparateBenchmark() {