Browse Source

Math: verify that TypeTraits work correctly for signed infinities.

pull/364/head
Vladimír Vondruš 7 years ago
parent
commit
a28e14491c
  1. 2
      src/Magnum/Math/Test/TypeTraitsTest.cpp

2
src/Magnum/Math/Test/TypeTraitsTest.cpp

@ -281,6 +281,8 @@ template<class T> void TypeTraitsTest::equalsFloatingPointInfinity() {
CORRADE_VERIFY(TypeTraits<T>::equals(Constants<T>::inf(),
Constants<T>::inf()));
CORRADE_VERIFY(!TypeTraits<T>::equals(Constants<T>::inf(),
-Constants<T>::inf()));
}
template<class T> void TypeTraitsTest::equalsFloatingPointNaN() {

Loading…
Cancel
Save