From 6c1b91678b5406fb10fe5d4692014f8017d1cf1c Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 19 Oct 2009 14:40:35 -0400 Subject: 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. --- test/product_selfadjoint.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/product_selfadjoint.cpp') diff --git a/test/product_selfadjoint.cpp b/test/product_selfadjoint.cpp index e47358197..065d4ad8c 100644 --- a/test/product_selfadjoint.cpp +++ b/test/product_selfadjoint.cpp @@ -78,13 +78,13 @@ template void product_selfadjoint(const MatrixType& m) void test_product_selfadjoint() { for(int i = 0; i < g_repeat ; i++) { - CALL_SUBTEST( product_selfadjoint(Matrix()) ); - CALL_SUBTEST( product_selfadjoint(Matrix()) ); - CALL_SUBTEST( product_selfadjoint(Matrix3d()) ); - CALL_SUBTEST( product_selfadjoint(MatrixXcf(4, 4)) ); - CALL_SUBTEST( product_selfadjoint(MatrixXcd(21,21)) ); - CALL_SUBTEST( product_selfadjoint(MatrixXd(14,14)) ); - CALL_SUBTEST( product_selfadjoint(Matrix(17,17)) ); - CALL_SUBTEST( product_selfadjoint(Matrix,Dynamic,Dynamic,RowMajor>(19, 19)) ); + CALL_SUBTEST1( product_selfadjoint(Matrix()) ); + CALL_SUBTEST2( product_selfadjoint(Matrix()) ); + CALL_SUBTEST3( product_selfadjoint(Matrix3d()) ); + CALL_SUBTEST4( product_selfadjoint(MatrixXcf(4, 4)) ); + CALL_SUBTEST5( product_selfadjoint(MatrixXcd(21,21)) ); + CALL_SUBTEST6( product_selfadjoint(MatrixXd(14,14)) ); + CALL_SUBTEST7( product_selfadjoint(Matrix(17,17)) ); + CALL_SUBTEST8( product_selfadjoint(Matrix,Dynamic,Dynamic,RowMajor>(19, 19)) ); } } -- cgit v1.2.3