Browse Source

DebugTools: "fix" flaky test.

Somehow the compiler is producing less and less precise code.
pull/68/head
Vladimír Vondruš 12 years ago
parent
commit
37c7f285c3
  1. 2
      src/Magnum/DebugTools/Test/ForceRendererTest.cpp

2
src/Magnum/DebugTools/Test/ForceRendererTest.cpp

@ -103,7 +103,7 @@ void ForceRendererTest::arbitrary3D() {
CORRADE_COMPARE(Vector3::dot(m.right(), m.up()), 0.0f);
CORRADE_COMPARE(Vector3::dot(m.right(), m.backward()), 0.0f);
/** @todo This shouldn't be too different */
CORRADE_COMPARE(Vector3::dot(m.up(), m.backward()), -Math::TypeTraits<Float>::epsilon());
CORRADE_VERIFY(Math::abs(Vector3::dot(m.up(), m.backward())) < Math::TypeTraits<Float>::epsilon());
}
}}}}

Loading…
Cancel
Save