From 7b507d0485fd3d7a1eebd882a3360ed06a80c50d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 30 Jan 2013 14:36:13 +0100 Subject: [PATCH] Math: improve Vector::min()/max() tests. --- src/Math/Test/VectorTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Math/Test/VectorTest.cpp b/src/Math/Test/VectorTest.cpp index 2e8a2561f..adaa4f166 100644 --- a/src/Math/Test/VectorTest.cpp +++ b/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() {