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_symm.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/product_symm.cpp') diff --git a/test/product_symm.cpp b/test/product_symm.cpp index cf0299c64..ecd46c78e 100644 --- a/test/product_symm.cpp +++ b/test/product_symm.cpp @@ -108,10 +108,10 @@ void test_product_symm() { for(int i = 0; i < g_repeat ; i++) { - CALL_SUBTEST(( symm(ei_random(10,320),ei_random(10,320)) )); - CALL_SUBTEST(( symm,Dynamic,Dynamic>(ei_random(10,320),ei_random(10,320)) )); + CALL_SUBTEST1(( symm(ei_random(10,320),ei_random(10,320)) )); + CALL_SUBTEST2(( symm,Dynamic,Dynamic>(ei_random(10,320),ei_random(10,320)) )); - CALL_SUBTEST(( symm(ei_random(10,320)) )); - CALL_SUBTEST(( symm,Dynamic,1>(ei_random(10,320)) )); + CALL_SUBTEST3(( symm(ei_random(10,320)) )); + CALL_SUBTEST4(( symm,Dynamic,1>(ei_random(10,320)) )); } } -- cgit v1.2.3