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())); }