aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_small.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-10-19 14:40:35 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-10-19 14:40:35 -0400
commit6c1b91678b5406fb10fe5d4692014f8017d1cf1c (patch)
treeaca137f1065785c6f6a93414e54c00b796e40d7f /test/product_small.cpp
parent580672ea43a29c7f0d10b6d92ffc07518500d4da (diff)
kill ei_add_test_multi. Now the macro ei_add_test does all that automatically, by parsing the source file. No risk anymore to specify the wrong number of tests! Also, introduce CALL_SUBTESTX for X=1..10 that allows to port existing code much quicker. And port already the product* and eigensolver* files.
Diffstat (limited to 'test/product_small.cpp')
-rw-r--r--test/product_small.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/product_small.cpp b/test/product_small.cpp
index 182af71db..3a667a5dc 100644
--- a/test/product_small.cpp
+++ b/test/product_small.cpp
@@ -28,16 +28,18 @@
void test_product_small()
{
for(int i = 0; i < g_repeat; i++) {
- CALL_SUBTEST( product(Matrix<float, 3, 2>()) );
- CALL_SUBTEST( product(Matrix<int, 3, 5>()) );
- CALL_SUBTEST( product(Matrix3d()) );
- CALL_SUBTEST( product(Matrix4d()) );
- CALL_SUBTEST( product(Matrix4f()) );
+ CALL_SUBTEST1( product(Matrix<float, 3, 2>()) );
+ CALL_SUBTEST2( product(Matrix<int, 3, 5>()) );
+ CALL_SUBTEST3( product(Matrix3d()) );
+ CALL_SUBTEST4( product(Matrix4d()) );
+ CALL_SUBTEST5( product(Matrix4f()) );
}
+#ifdef EIGEN_TEST_PART_6
{
// test compilation of (outer_product) * vector
Vector3f v = Vector3f::Random();
VERIFY_IS_APPROX( (v * v.transpose()) * v, (v * v.transpose()).eval() * v);
}
+#endif
}