update of the testing framework:

replaced the QTestLib framework my custom macros
and a (optional) custom script to run the tests from ctest.
This commit is contained in:
Gael Guennebaud
2008-05-22 12:18:55 +00:00
parent c6789a279c
commit 522e24f2d7
17 changed files with 393 additions and 374 deletions

View File

@@ -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