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

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