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/determinant.cpp | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'test/determinant.cpp') diff --git a/test/determinant.cpp b/test/determinant.cpp index ecb058a80..af0a0cc3f 100644 --- a/test/determinant.cpp +++ b/test/determinant.cpp @@ -23,11 +23,8 @@ // Eigen. If not, see . #include "main.h" - #include -namespace Eigen { - template void nullDeterminant(const MatrixType& m) { /* this test covers the following files: @@ -69,15 +66,13 @@ template void nullDeterminant(const MatrixType& m) VERIFY(!notInvertibleCovarianceMatrix.inverse().exists()); } -void EigenTest::testDeterminant() +void test_determinant() { - for(int i = 0; i < m_repeat; i++) { - nullDeterminant(Matrix()); - nullDeterminant(Matrix()); - nullDeterminant(Matrix()); - nullDeterminant(Matrix()); -// nullDeterminant(MatrixXd(20,4)); + for(int i = 0; i < g_repeat; i++) { + CALL_SUBTEST( nullDeterminant(Matrix()) ); + CALL_SUBTEST( nullDeterminant(Matrix()) ); + CALL_SUBTEST( nullDeterminant(Matrix()) ); + CALL_SUBTEST( nullDeterminant(Matrix()) ); +// CALL_SUBTEST( nullDeterminant(MatrixXd(20,4)); } } - -} // namespace Eigen -- cgit v1.2.3