From 3c17a53fb33ac921ca769e8d96755d343b00f147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 1 Sep 2016 18:19:52 +0200 Subject: [PATCH] Math: test also long double versions of TypeTraits. --- src/Magnum/Math/Test/TypeTraitsTest.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Magnum/Math/Test/TypeTraitsTest.cpp b/src/Magnum/Math/Test/TypeTraitsTest.cpp index b3767e999..7790269b8 100644 --- a/src/Magnum/Math/Test/TypeTraitsTest.cpp +++ b/src/Magnum/Math/Test/TypeTraitsTest.cpp @@ -60,10 +60,19 @@ TypeTraitsTest::TypeTraitsTest() { &TypeTraitsTest::equalsFloatingPoint0, &TypeTraitsTest::equalsFloatingPoint0, + #ifndef CORRADE_TARGET_EMSCRIPTEN + &TypeTraitsTest::equalsFloatingPoint0, + #endif &TypeTraitsTest::equalsFloatingPoint1, &TypeTraitsTest::equalsFloatingPoint1, + #ifndef CORRADE_TARGET_EMSCRIPTEN + &TypeTraitsTest::equalsFloatingPoint1, + #endif &TypeTraitsTest::equalsFloatingPointLarge, &TypeTraitsTest::equalsFloatingPointLarge, + #ifndef CORRADE_TARGET_EMSCRIPTEN + &TypeTraitsTest::equalsFloatingPointLarge, + #endif &TypeTraitsTest::equalsFloatingPointInfinity, &TypeTraitsTest::equalsFloatingPointInfinity, &TypeTraitsTest::equalsFloatingPointNaN, @@ -78,6 +87,8 @@ void TypeTraitsTest::name() { template void TypeTraitsTest::equalsIntegral() { setTestCaseName(std::string{"equalsIntegral<"} + TypeTraits::name() + ">"); + CORRADE_VERIFY(TypeTraits::equals(1, 1)); + CORRADE_VERIFY(!TypeTraits::equals(1, -1)); CORRADE_VERIFY(!TypeTraits::equals(1, 1+TypeTraits::epsilon())); }