aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/adjoint.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/adjoint.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/adjoint.cpp')
-rw-r--r--test/adjoint.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/test/adjoint.cpp b/test/adjoint.cpp
index a400e948e..ae1b002e5 100644
--- a/test/adjoint.cpp
+++ b/test/adjoint.cpp
@@ -24,8 +24,6 @@
#include "main.h"
-namespace Eigen {
-
template<typename MatrixType> void adjoint(const MatrixType& m)
{
/* this test covers the following files:
@@ -95,17 +93,16 @@ template<typename MatrixType> void adjoint(const MatrixType& m)
}
-void EigenTest::testAdjoint()
+void test_adjoint()
{
- for(int i = 0; i < m_repeat; i++) {
- adjoint(Matrix<float, 1, 1>());
- adjoint(Matrix4d());
- adjoint(MatrixXcf(3, 3));
- adjoint(MatrixXi(8, 12));
- adjoint(MatrixXcd(20, 20));
+ for(int i = 0; i < g_repeat; i++) {
+ CALL_SUBTEST( adjoint(Matrix<float, 1, 1>()) );
+ CALL_SUBTEST( adjoint(Matrix4d()) );
+ CALL_SUBTEST( adjoint(MatrixXcf(3, 3)) );
+ CALL_SUBTEST( adjoint(MatrixXi(8, 12)) );
+ CALL_SUBTEST( adjoint(MatrixXcd(20, 20)) );
}
// test a large matrix only once
- adjoint(Matrix<float, 100, 100>());
+ CALL_SUBTEST( adjoint(Matrix<float, 100, 100>()) );
}
-} // namespace Eigen