|
|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
#include <sstream> |
|
|
|
|
#include <Corrade/TestSuite/Tester.h> |
|
|
|
|
#include <Corrade/Utility/DebugStl.h> |
|
|
|
|
#include <Corrade/Utility/TypeTraits.h> /* CORRADE_STD_IS_TRIVIALLY_TRAITS_SUPPORTED */ |
|
|
|
|
#include <Corrade/Utility/TypeTraits.h> /* CORRADE_NO_STD_IS_TRIVIALLY_TRAITS */ |
|
|
|
|
|
|
|
|
|
#include "Magnum/Math/Bezier.h" |
|
|
|
|
#include "Magnum/Math/CubicHermite.h" |
|
|
|
|
@ -601,7 +601,7 @@ void CubicHermiteTest::constructCopyScalar() {
|
|
|
|
|
|
|
|
|
|
CORRADE_COMPARE(b, (CubicHermite1D{2.0f, -2.0f, -0.5f})); |
|
|
|
|
|
|
|
|
|
#ifdef CORRADE_STD_IS_TRIVIALLY_TRAITS_SUPPORTED |
|
|
|
|
#ifndef CORRADE_NO_STD_IS_TRIVIALLY_TRAITS |
|
|
|
|
CORRADE_VERIFY(std::is_trivially_copy_constructible<CubicHermite1D>::value); |
|
|
|
|
CORRADE_VERIFY(std::is_trivially_copy_assignable<CubicHermite1D>::value); |
|
|
|
|
#endif |
|
|
|
|
@ -615,7 +615,7 @@ void CubicHermiteTest::constructCopyVector() {
|
|
|
|
|
|
|
|
|
|
CORRADE_COMPARE(b, (CubicHermite2D{{1.0f, 2.0f}, {1.5f, -2.0f}, {3.0f, -0.5f}})); |
|
|
|
|
|
|
|
|
|
#ifdef CORRADE_STD_IS_TRIVIALLY_TRAITS_SUPPORTED |
|
|
|
|
#ifndef CORRADE_NO_STD_IS_TRIVIALLY_TRAITS |
|
|
|
|
CORRADE_VERIFY(std::is_trivially_copy_constructible<CubicHermite2D>::value); |
|
|
|
|
CORRADE_VERIFY(std::is_trivially_copy_assignable<CubicHermite2D>::value); |
|
|
|
|
#endif |
|
|
|
|
@ -629,7 +629,7 @@ void CubicHermiteTest::constructCopyComplex() {
|
|
|
|
|
|
|
|
|
|
CORRADE_COMPARE(b, (CubicHermiteComplex{{1.0f, 2.0f}, {1.5f, -2.0f}, {3.0f, -0.5f}})); |
|
|
|
|
|
|
|
|
|
#ifdef CORRADE_STD_IS_TRIVIALLY_TRAITS_SUPPORTED |
|
|
|
|
#ifndef CORRADE_NO_STD_IS_TRIVIALLY_TRAITS |
|
|
|
|
CORRADE_VERIFY(std::is_trivially_copy_constructible<CubicHermiteComplex>::value); |
|
|
|
|
CORRADE_VERIFY(std::is_trivially_copy_assignable<CubicHermiteComplex>::value); |
|
|
|
|
#endif |
|
|
|
|
@ -649,7 +649,7 @@ void CubicHermiteTest::constructCopyQuaternion() {
|
|
|
|
|
{{1.5f, -2.0f, 0.1f}, 1.1f}, |
|
|
|
|
{{3.0f, -0.5f, 1.2f}, 0.3f}})); |
|
|
|
|
|
|
|
|
|
#ifdef CORRADE_STD_IS_TRIVIALLY_TRAITS_SUPPORTED |
|
|
|
|
#ifndef CORRADE_NO_STD_IS_TRIVIALLY_TRAITS |
|
|
|
|
CORRADE_VERIFY(std::is_trivially_copy_constructible<CubicHermiteQuaternion>::value); |
|
|
|
|
CORRADE_VERIFY(std::is_trivially_copy_assignable<CubicHermiteQuaternion>::value); |
|
|
|
|
#endif |
|
|
|
|
|