aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-11-19 15:38:37 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-11-19 15:38:37 +0100
commit661ef6c127fb608bd91078d23032613194d3d512 (patch)
tree9b697ab815a535d1802a934ce31be44c4c2b5ba0 /test
parent3f24dbf6f53325b3317a59187fb4697f72e52512 (diff)
add regression unit test
Diffstat (limited to 'test')
-rw-r--r--test/geo_transformations.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/geo_transformations.cpp b/test/geo_transformations.cpp
index ac0c7ecbf..43a4aeedd 100644
--- a/test/geo_transformations.cpp
+++ b/test/geo_transformations.cpp
@@ -308,6 +308,14 @@ template<typename Scalar, int Mode> void transformations(void)
t0.prescale(s0);
t1 = Scaling(s0) * t1;
VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
+
+ t0 = t3;
+ t0.scale(s0);
+ t1 = t3 * Scaling(s0,s0,s0);
+ VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
+ t0.prescale(s0);
+ t1 = Scaling(s0,s0,s0) * t1;
+ VERIFY_IS_APPROX(t0.matrix(), t1.matrix());
t0.setIdentity();