aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/geo_quaternion.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-05-20 09:59:15 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-05-20 09:59:15 +0200
commit96464f8563720f09648876d7f268db6059615a19 (patch)
treedadfa146363e989b4f87c1539ba98ec1c46693a4 /test/geo_quaternion.cpp
parent501bc602ece7b6081e431e0c1b69bcabd217ba08 (diff)
clean several other assertion checking tests
Diffstat (limited to 'test/geo_quaternion.cpp')
-rw-r--r--test/geo_quaternion.cpp10
1 files changed, 3 insertions, 7 deletions
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<typename Scalar> void mapQuaternion(void){
VERIFY_IS_APPROX(q4.coeffs(), q3.coeffs());
#ifdef EIGEN_VECTORIZE
if(internal::packet_traits<Scalar>::Vectorizable)
- {
VERIFY_RAISES_ASSERT((MQuaternionA(array3unaligned)));
- }
#endif
}
@@ -173,11 +171,9 @@ template<typename Scalar> 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<Scalar>::Vectorizable)
- {
VERIFY_RAISES_ASSERT((::new(reinterpret_cast<void*>(arrayunaligned)) QuaternionA));
- }
#endif
}
@@ -201,8 +197,8 @@ void test_geo_quaternion()
for(int i = 0; i < g_repeat; i++) {
CALL_SUBTEST_1(( quaternion<float,AutoAlign>() ));
CALL_SUBTEST_1( check_const_correctness(Quaternionf()) );
-// CALL_SUBTEST_2(( quaternion<double,AutoAlign>() ));
-// CALL_SUBTEST_2( check_const_correctness(Quaterniond()) );
+ CALL_SUBTEST_2(( quaternion<double,AutoAlign>() ));
+ CALL_SUBTEST_2( check_const_correctness(Quaterniond()) );
CALL_SUBTEST_3(( quaternion<float,DontAlign>() ));
CALL_SUBTEST_4(( quaternion<double,DontAlign>() ));
CALL_SUBTEST_5(( quaternionAlignment<float>() ));