From 522e24f2d728aa248fbcaf38ed3ce6e629351409 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 22 May 2008 12:18:55 +0000 Subject: update of the testing framework: replaced the QTestLib framework my custom macros and a (optional) custom script to run the tests from ctest. --- test/linearstructure.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'test/linearstructure.cpp') diff --git a/test/linearstructure.cpp b/test/linearstructure.cpp index 25d0bdc2c..a7b058d69 100644 --- a/test/linearstructure.cpp +++ b/test/linearstructure.cpp @@ -24,8 +24,6 @@ #include "main.h" -namespace Eigen { - template void linearStructure(const MatrixType& m) { /* this test covers the following files: @@ -97,16 +95,14 @@ template void linearStructure(const MatrixType& m) VERIFY_IS_APPROX(m1.block(0,0,rows,cols) * s1, m1 * s1); } -void EigenTest::testLinearStructure() +void test_linearstructure() { - for(int i = 0; i < m_repeat; i++) { - linearStructure(Matrix()); - linearStructure(Matrix4d()); - linearStructure(MatrixXcf(3, 3)); - linearStructure(MatrixXf(8, 12)); - linearStructure(MatrixXi(8, 12)); - linearStructure(MatrixXcd(20, 20)); + for(int i = 0; i < g_repeat; i++) { + CALL_SUBTEST( linearStructure(Matrix()) ); + CALL_SUBTEST( linearStructure(Matrix4d()) ); + CALL_SUBTEST( linearStructure(MatrixXcf(3, 3)) ); + CALL_SUBTEST( linearStructure(MatrixXf(8, 12)) ); + CALL_SUBTEST( linearStructure(MatrixXi(8, 12)) ); + CALL_SUBTEST( linearStructure(MatrixXcd(20, 20)) ); } } - -} // namespace Eigen -- cgit v1.2.3