aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cholesky.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/cholesky.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/cholesky.cpp')
-rw-r--r--test/cholesky.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/test/cholesky.cpp b/test/cholesky.cpp
index 21e632b29..2f18771c2 100644
--- a/test/cholesky.cpp
+++ b/test/cholesky.cpp
@@ -23,11 +23,8 @@
// Eigen. If not, see <http://www.gnu.org/licenses/>.
#include "main.h"
-
#include <Eigen/Cholesky>
-namespace Eigen {
-
template<typename MatrixType> void cholesky(const MatrixType& m)
{
/* this test covers the following files:
@@ -53,13 +50,11 @@ template<typename MatrixType> void cholesky(const MatrixType& m)
VERIFY_IS_APPROX(covMat * chol.solve(b), b);
}
-void EigenTest::testCholesky()
+void test_cholesky()
{
for(int i = 0; i < 1; i++) {
- cholesky(Matrix3f());
- cholesky(Matrix4d());
- cholesky(MatrixXcd(7,7));
+ CALL_SUBTEST( cholesky(Matrix3f()) );
+ CALL_SUBTEST( cholesky(Matrix4d()) );
+ CALL_SUBTEST( cholesky(MatrixXcd(7,7)) );
}
}
-
-} // namespace Eigen