aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/linearstructure.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-05-22 12:18:55 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-05-22 12:18:55 +0000
commit522e24f2d728aa248fbcaf38ed3ce6e629351409 (patch)
tree46e45228336071049bf2982e8e203d16687d57f5 /test/linearstructure.cpp
parentc6789a279c4def1ba33f6481ac7f9df68ba5f32b (diff)
update of the testing framework:
replaced the QTestLib framework my custom macros and a (optional) custom script to run the tests from ctest.
Diffstat (limited to 'test/linearstructure.cpp')
-rw-r--r--test/linearstructure.cpp20
1 files changed, 8 insertions, 12 deletions
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<typename MatrixType> void linearStructure(const MatrixType& m)
{
/* this test covers the following files:
@@ -97,16 +95,14 @@ template<typename MatrixType> 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<float, 1, 1>());
- 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<float, 1, 1>()) );
+ 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