Browse Source

Math: don't compare const char* as pointers in test by accident.

pull/187/head^2
Vladimír Vondruš 10 years ago
parent
commit
69dfc39f30
  1. 4
      src/Magnum/Math/Test/TypeTraitsTest.cpp

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

@ -165,8 +165,8 @@ void TypeTraitsTest::sizeOfLongDouble() {
}
void TypeTraitsTest::name() {
CORRADE_COMPARE(TypeTraits<UnsignedShort>::name(), "UnsignedShort");
CORRADE_COMPARE(TypeTraits<Float>::name(), "Float");
CORRADE_COMPARE(TypeTraits<UnsignedShort>::name(), std::string{"UnsignedShort"});
CORRADE_COMPARE(TypeTraits<Float>::name(), std::string{"Float"});
}
template<class T> void TypeTraitsTest::equalsIntegral() {

Loading…
Cancel
Save