diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-07-21 22:23:17 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-07-21 22:23:17 +0200 |
commit | d3e5db9a8082a21f31b80ba0cb3324c7815b8485 (patch) | |
tree | c4c360b15736cbefe5e1cae8d269864986db639b /unsupported | |
parent | 5e635f9ca104fe17ae651b63536df1fdffaee54e (diff) |
add regression unit test for previous changeset
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/test/alignedvector3.cpp | 10 |
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; |