From fa3ec12dba9072ecd22bd1e51c7e71203239935b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 7 Jun 2015 15:24:47 +0200 Subject: [PATCH] Math: actually test the conversion and not some random copy constructor. --- src/Magnum/Math/Test/RectangularMatrixTest.cpp | 2 +- src/Magnum/Math/Test/VectorTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Math/Test/RectangularMatrixTest.cpp b/src/Magnum/Math/Test/RectangularMatrixTest.cpp index 77e5500f3..6a140a0da 100644 --- a/src/Magnum/Math/Test/RectangularMatrixTest.cpp +++ b/src/Magnum/Math/Test/RectangularMatrixTest.cpp @@ -211,7 +211,7 @@ void RectangularMatrixTest::convert() { constexpr Matrix2x3 b(Vector3(1.5f, 2.0f, -3.5f), Vector3(2.0f, -3.1f, 0.4f)); - constexpr Matrix2x3 c(b); + constexpr Matrix2x3 c{a}; CORRADE_COMPARE(c, b); constexpr Mat2x3 d(b); diff --git a/src/Magnum/Math/Test/VectorTest.cpp b/src/Magnum/Math/Test/VectorTest.cpp index dbca581fe..d57079f74 100644 --- a/src/Magnum/Math/Test/VectorTest.cpp +++ b/src/Magnum/Math/Test/VectorTest.cpp @@ -234,7 +234,7 @@ void VectorTest::convert() { constexpr Vec3 a{1.5f, 2.0f, -3.5f}; constexpr Vector3 b(1.5f, 2.0f, -3.5f); - constexpr Vector3 c(b); + constexpr Vector3 c{a}; CORRADE_COMPARE(c, b); constexpr Vec3 d(b);