From a28e14491c12178170e01d259d9ea5c488f21c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 31 Jul 2019 10:31:18 +0200 Subject: [PATCH] Math: verify that TypeTraits work correctly for signed infinities. --- src/Magnum/Math/Test/TypeTraitsTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Magnum/Math/Test/TypeTraitsTest.cpp b/src/Magnum/Math/Test/TypeTraitsTest.cpp index cab9d75b7..8f3bdbf15 100644 --- a/src/Magnum/Math/Test/TypeTraitsTest.cpp +++ b/src/Magnum/Math/Test/TypeTraitsTest.cpp @@ -281,6 +281,8 @@ template void TypeTraitsTest::equalsFloatingPointInfinity() { CORRADE_VERIFY(TypeTraits::equals(Constants::inf(), Constants::inf())); + CORRADE_VERIFY(!TypeTraits::equals(Constants::inf(), + -Constants::inf())); } template void TypeTraitsTest::equalsFloatingPointNaN() {