aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/triangular.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/triangular.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/triangular.cpp')
-rw-r--r--test/triangular.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/triangular.cpp b/test/triangular.cpp
index 985c6aacd..f384c4d50 100644
--- a/test/triangular.cpp
+++ b/test/triangular.cpp
@@ -24,8 +24,6 @@
#include "main.h"
-namespace Eigen {
-
template<typename MatrixType> void triangular(const MatrixType& m)
{
typedef typename MatrixType::Scalar Scalar;
@@ -87,14 +85,12 @@ template<typename MatrixType> void triangular(const MatrixType& m)
}
-void EigenTest::testTriangular()
+void test_triangular()
{
- for(int i = 0; i < m_repeat ; i++) {
+ for(int i = 0; i < g_repeat ; i++) {
// triangular(Matrix<float, 1, 1>());
- triangular(Matrix3d());
- triangular(MatrixXcf(4, 4));
-// triangular(Matrix<std::complex<float>,8, 8>());
+ CALL_SUBTEST( triangular(Matrix3d()) );
+ CALL_SUBTEST( triangular(MatrixXcf(4, 4)) );
+// CALL_SUBTEST( triangular(Matrix<std::complex<float>,8, 8>()) );
}
}
-
-} // namespace Eigen