diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-05-22 12:18:55 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-05-22 12:18:55 +0000 |
commit | 522e24f2d728aa248fbcaf38ed3ce6e629351409 (patch) | |
tree | 46e45228336071049bf2982e8e203d16687d57f5 /test/determinant.cpp | |
parent | c6789a279c4def1ba33f6481ac7f9df68ba5f32b (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/determinant.cpp')
-rw-r--r-- | test/determinant.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
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 <http://www.gnu.org/licenses/>. #include "main.h" - #include <Eigen/LU> -namespace Eigen { - template<typename MatrixType> void nullDeterminant(const MatrixType& m) { /* this test covers the following files: @@ -69,15 +66,13 @@ template<typename MatrixType> 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<float, 30, 3>()); - nullDeterminant(Matrix<double, 30, 3>()); - nullDeterminant(Matrix<float, 20, 4>()); - nullDeterminant(Matrix<double, 20, 4>()); -// nullDeterminant(MatrixXd(20,4)); + for(int i = 0; i < g_repeat; i++) { + CALL_SUBTEST( nullDeterminant(Matrix<float, 30, 3>()) ); + CALL_SUBTEST( nullDeterminant(Matrix<double, 30, 3>()) ); + CALL_SUBTEST( nullDeterminant(Matrix<float, 20, 4>()) ); + CALL_SUBTEST( nullDeterminant(Matrix<double, 20, 4>()) ); +// CALL_SUBTEST( nullDeterminant(MatrixXd(20,4)); } } - -} // namespace Eigen |