From 361066fdbf5fb58f76781a8bd1f1d3554fb9eff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 19 Nov 2013 22:10:56 +0100 Subject: [PATCH] Math: test that constructing vector from parts can be done implicitly. --- src/Math/Test/Vector3Test.cpp | 2 +- src/Math/Test/Vector4Test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Math/Test/Vector3Test.cpp b/src/Math/Test/Vector3Test.cpp index 291a4cf08..2611283e4 100644 --- a/src/Math/Test/Vector3Test.cpp +++ b/src/Math/Test/Vector3Test.cpp @@ -122,7 +122,7 @@ void Vector3Test::constructOneValue() { void Vector3Test::constructParts() { constexpr Vector2 a(1.0f, 2.0f); - constexpr Vector3 b(a, 3.0f); + constexpr Vector3 b = {a, 3.0f}; CORRADE_COMPARE(b, Vector3(1.0f, 2.0f, 3.0f)); } diff --git a/src/Math/Test/Vector4Test.cpp b/src/Math/Test/Vector4Test.cpp index 3759df1c1..e5480f870 100644 --- a/src/Math/Test/Vector4Test.cpp +++ b/src/Math/Test/Vector4Test.cpp @@ -119,7 +119,7 @@ void Vector4Test::constructOneValue() { void Vector4Test::constructParts() { constexpr Vector3 a(1.0f, 2.0f, 3.0f); - constexpr Vector4 b(a, 4.0f); + constexpr Vector4 b = {a, 4.0f}; CORRADE_COMPARE(b, Vector4(1.0f, 2.0f, 3.0f, 4.0f)); }