From 96464f8563720f09648876d7f268db6059615a19 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 20 May 2011 09:59:15 +0200 Subject: clean several other assertion checking tests --- test/geo_quaternion.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'test/geo_quaternion.cpp') diff --git a/test/geo_quaternion.cpp b/test/geo_quaternion.cpp index c34e3bed6..b6f9690be 100644 --- a/test/geo_quaternion.cpp +++ b/test/geo_quaternion.cpp @@ -148,9 +148,7 @@ template void mapQuaternion(void){ VERIFY_IS_APPROX(q4.coeffs(), q3.coeffs()); #ifdef EIGEN_VECTORIZE if(internal::packet_traits::Vectorizable) - { VERIFY_RAISES_ASSERT((MQuaternionA(array3unaligned))); - } #endif } @@ -173,11 +171,9 @@ template void quaternionAlignment(void){ VERIFY_IS_APPROX(q1->coeffs(), q2->coeffs()); VERIFY_IS_APPROX(q1->coeffs(), q3->coeffs()); - #ifdef EIGEN_VECTORIZE + #if defined(EIGEN_VECTORIZE) && !defined(EIGEN_DONT_ALIGN_STATICALLY) if(internal::packet_traits::Vectorizable) - { VERIFY_RAISES_ASSERT((::new(reinterpret_cast(arrayunaligned)) QuaternionA)); - } #endif } @@ -201,8 +197,8 @@ void test_geo_quaternion() for(int i = 0; i < g_repeat; i++) { CALL_SUBTEST_1(( quaternion() )); CALL_SUBTEST_1( check_const_correctness(Quaternionf()) ); -// CALL_SUBTEST_2(( quaternion() )); -// CALL_SUBTEST_2( check_const_correctness(Quaterniond()) ); + CALL_SUBTEST_2(( quaternion() )); + CALL_SUBTEST_2( check_const_correctness(Quaterniond()) ); CALL_SUBTEST_3(( quaternion() )); CALL_SUBTEST_4(( quaternion() )); CALL_SUBTEST_5(( quaternionAlignment() )); -- cgit v1.2.3