aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/lu.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/lu.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/lu.cpp')
-rw-r--r--test/lu.cpp44
1 files changed, 21 insertions, 23 deletions
diff --git a/test/lu.cpp b/test/lu.cpp
index 1dd78bb46..1813172cd 100644
--- a/test/lu.cpp
+++ b/test/lu.cpp
@@ -153,28 +153,26 @@ template<typename MatrixType> void lu_verify_assert()
void test_lu()
{
for(int i = 0; i < g_repeat; i++) {
-#if defined EIGEN_TEST_PART_1
- CALL_SUBTEST( lu_non_invertible<Matrix3f>() );
- CALL_SUBTEST( lu_verify_assert<Matrix3f>() );
-#elif defined EIGEN_TEST_PART_2
- CALL_SUBTEST( (lu_non_invertible<Matrix<double, 4, 6> >()) );
- CALL_SUBTEST( (lu_verify_assert<Matrix<double, 4, 6> >()) );
-#elif defined EIGEN_TEST_PART_3
- CALL_SUBTEST( lu_non_invertible<MatrixXf>() );
- CALL_SUBTEST( lu_invertible<MatrixXf>() );
- CALL_SUBTEST( lu_verify_assert<MatrixXf>() );
-#elif defined EIGEN_TEST_PART_4
- CALL_SUBTEST( lu_non_invertible<MatrixXd>() );
- CALL_SUBTEST( lu_invertible<MatrixXd>() );
- CALL_SUBTEST( lu_verify_assert<MatrixXd>() );
-#elif defined EIGEN_TEST_PART_5
- CALL_SUBTEST( lu_non_invertible<MatrixXcf>() );
- CALL_SUBTEST( lu_invertible<MatrixXcf>() );
- CALL_SUBTEST( lu_verify_assert<MatrixXcf>() );
-#elif defined EIGEN_TEST_PART_6
- CALL_SUBTEST( lu_non_invertible<MatrixXcd>() );
- CALL_SUBTEST( lu_invertible<MatrixXcd>() );
- CALL_SUBTEST( lu_verify_assert<MatrixXcd>() );
-#endif
+ CALL_SUBTEST1( lu_non_invertible<Matrix3f>() );
+ CALL_SUBTEST1( lu_verify_assert<Matrix3f>() );
+
+ CALL_SUBTEST2( (lu_non_invertible<Matrix<double, 4, 6> >()) );
+ CALL_SUBTEST2( (lu_verify_assert<Matrix<double, 4, 6> >()) );
+
+ CALL_SUBTEST3( lu_non_invertible<MatrixXf>() );
+ CALL_SUBTEST3( lu_invertible<MatrixXf>() );
+ CALL_SUBTEST3( lu_verify_assert<MatrixXf>() );
+
+ CALL_SUBTEST4( lu_non_invertible<MatrixXd>() );
+ CALL_SUBTEST4( lu_invertible<MatrixXd>() );
+ CALL_SUBTEST4( lu_verify_assert<MatrixXd>() );
+
+ CALL_SUBTEST5( lu_non_invertible<MatrixXcf>() );
+ CALL_SUBTEST5( lu_invertible<MatrixXcf>() );
+ CALL_SUBTEST5( lu_verify_assert<MatrixXcf>() );
+
+ CALL_SUBTEST6( lu_non_invertible<MatrixXcd>() );
+ CALL_SUBTEST6( lu_invertible<MatrixXcd>() );
+ CALL_SUBTEST6( lu_verify_assert<MatrixXcd>() );
}
}