aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/EulerAngles.cpp
diff options
context:
space:
mode:
authorGravatar Abhijit Kundu <abhijit.kundu@gatech.edu>2017-08-30 13:26:30 -0400
committerGravatar Abhijit Kundu <abhijit.kundu@gatech.edu>2017-08-30 13:26:30 -0400
commit6d991a9595ffe22a0924bb8140a37355aca4cccb (patch)
tree88af34cb2e7b2b9f449b145d154daad170bd2446 /unsupported/test/EulerAngles.cpp
parent304ef2957134be386e50592ad7120177c5f3a7c0 (diff)
bug #1464 : Fixes construction of EulerAngles from 3D vector expression.
Diffstat (limited to 'unsupported/test/EulerAngles.cpp')
-rw-r--r--unsupported/test/EulerAngles.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/unsupported/test/EulerAngles.cpp b/unsupported/test/EulerAngles.cpp
index 79ee72847..500fb2d17 100644
--- a/unsupported/test/EulerAngles.cpp
+++ b/unsupported/test/EulerAngles.cpp
@@ -278,6 +278,9 @@ void test_EulerAngles()
EulerAnglesXYZd onesEd(1, 1, 1);
EulerAnglesXYZf onesEf = onesEd.cast<float>();
VERIFY_IS_APPROX(onesEd, onesEf.cast<double>());
+
+ // Simple Construction from Vector3 test
+ VERIFY_IS_APPROX(onesEd, EulerAnglesXYZd(Vector3d::Ones()));
CALL_SUBTEST_1( eulerangles_manual<float>() );
CALL_SUBTEST_2( eulerangles_manual<double>() );