aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/alignedvector3.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-07-21 22:23:17 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-07-21 22:23:17 +0200
commitd3e5db9a8082a21f31b80ba0cb3324c7815b8485 (patch)
treec4c360b15736cbefe5e1cae8d269864986db639b /unsupported/test/alignedvector3.cpp
parent5e635f9ca104fe17ae651b63536df1fdffaee54e (diff)
add regression unit test for previous changeset
Diffstat (limited to 'unsupported/test/alignedvector3.cpp')
-rw-r--r--unsupported/test/alignedvector3.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/unsupported/test/alignedvector3.cpp b/unsupported/test/alignedvector3.cpp
index 911996413..7da05c264 100644
--- a/unsupported/test/alignedvector3.cpp
+++ b/unsupported/test/alignedvector3.cpp
@@ -60,6 +60,16 @@ void alignedvector3()
r2.normalize();
VERIFY_IS_APPROX(f2,r2);
+ {
+ FastType f6 = RefType::Zero();
+ FastType f7 = FastType::Zero();
+ VERIFY_IS_APPROX(f6,f7);
+ f6 = r4+r1;
+ VERIFY_IS_APPROX(f6,r4+r1);
+ f6 -= Scalar(2)*r4;
+ VERIFY_IS_APPROX(f6,r1-r4);
+ }
+
std::stringstream ss1, ss2;
ss1 << f1;
ss2 << r1;