Browse Source

Math: improve Vector::min()/max() tests.

pull/7/head
Vladimír Vondruš 13 years ago
parent
commit
7b507d0485
  1. 4
      src/Math/Test/VectorTest.cpp

4
src/Math/Test/VectorTest.cpp

@ -213,11 +213,13 @@ void VectorTest::product() {
}
void VectorTest::min() {
/* Check also that initial value isn't initialized to 0 */
CORRADE_COMPARE(Vector3(1.0f, -2.0f, 3.0f).min(), -2.0f);
}
void VectorTest::max() {
CORRADE_COMPARE(Vector3(1.0f, -2.0f, 3.0f).max(), 3.0f);
/* Check also that initial value isn't initialized to 0 */
CORRADE_COMPARE(Vector3(-1.0f, -2.0f, -3.0f).max(), -1.0f);
}
void VectorTest::projected() {

Loading…
Cancel
Save