From be5c872c8a550eb2340928e63f7c1bfa6a99daf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 18 Mar 2013 12:10:13 +0100 Subject: [PATCH] Math: fixed two typos in the test. They resulted in fact that the test case didn't actually test anything. Spotted by Clang. --- src/Math/Test/DualComplexTest.cpp | 2 +- src/Math/Test/DualQuaternionTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Math/Test/DualComplexTest.cpp b/src/Math/Test/DualComplexTest.cpp index d0ddce9f5..db1dce3c6 100644 --- a/src/Math/Test/DualComplexTest.cpp +++ b/src/Math/Test/DualComplexTest.cpp @@ -126,7 +126,7 @@ void DualComplexTest::constructFromVector() { void DualComplexTest::constructCopy() { constexpr DualComplex a({-1.0f, 2.5f}, {3.0f, -7.5f}); constexpr DualComplex b(a); - CORRADE_COMPARE(a, DualComplex({-1.0f, 2.5f}, {3.0f, -7.5f})); + CORRADE_COMPARE(b, DualComplex({-1.0f, 2.5f}, {3.0f, -7.5f})); } void DualComplexTest::isNormalized() { diff --git a/src/Math/Test/DualQuaternionTest.cpp b/src/Math/Test/DualQuaternionTest.cpp index d0dc65039..d484dceb5 100644 --- a/src/Math/Test/DualQuaternionTest.cpp +++ b/src/Math/Test/DualQuaternionTest.cpp @@ -124,7 +124,7 @@ void DualQuaternionTest::constructFromVector() { void DualQuaternionTest::constructCopy() { constexpr DualQuaternion a({{1.0f, 2.0f, -3.0f}, -3.5f}, {{4.5f, -7.0f, 2.0f}, 1.0f}); constexpr DualQuaternion b(a); - CORRADE_COMPARE(a, DualQuaternion({{1.0f, 2.0f, -3.0f}, -3.5f}, {{4.5f, -7.0f, 2.0f}, 1.0f})); + CORRADE_COMPARE(b, DualQuaternion({{1.0f, 2.0f, -3.0f}, -3.5f}, {{4.5f, -7.0f, 2.0f}, 1.0f})); } void DualQuaternionTest::isNormalized() {