Browse Source

Revert "Overflow test for large types in Math::normalize() started working."

It was working because of some weird state of my build dir, expecting
fail again.

This reverts commit 75d0505a60.
pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
3d77885555
  1. 8
      src/Math/Test/MathTest.cpp

8
src/Math/Test/MathTest.cpp

@ -73,8 +73,12 @@ void MathTest::denormalize() {
CORRADE_COMPARE(Math::denormalize<int>(1.0), numeric_limits<int>::max());
CORRADE_COMPARE(Math::denormalize<unsigned int>(1.0), numeric_limits<unsigned int>::max());
CORRADE_COMPARE((Math::denormalize<long long, long double>(1.0)), numeric_limits<long long>::max());
CORRADE_COMPARE((Math::denormalize<unsigned long long, long double>(1.0)), numeric_limits<unsigned long long>::max());
{
CORRADE_EXPECT_FAIL("Denormalize doesn't work for large types well");
CORRADE_COMPARE((Math::denormalize<long long, long double>(1.0)), numeric_limits<long long>::max());
CORRADE_COMPARE((Math::denormalize<unsigned long long, long double>(1.0)), numeric_limits<unsigned long long>::max());
}
}
void MathTest::clamp() {

Loading…
Cancel
Save