From a8f66fec6591e11a20a9861bda244e15f969fda2 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 12 Jul 2011 14:41:00 +0200 Subject: add the possibility to configure the maximal matrix size in the unit tests --- test/adjoint.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/adjoint.cpp') diff --git a/test/adjoint.cpp b/test/adjoint.cpp index 11b82b45c..643aca731 100644 --- a/test/adjoint.cpp +++ b/test/adjoint.cpp @@ -127,11 +127,11 @@ void test_adjoint() CALL_SUBTEST_1( adjoint(Matrix()) ); CALL_SUBTEST_2( adjoint(Matrix3d()) ); CALL_SUBTEST_3( adjoint(Matrix4f()) ); - CALL_SUBTEST_4( adjoint(MatrixXcf(internal::random(1,50), internal::random(1,50))) ); - CALL_SUBTEST_5( adjoint(MatrixXi(internal::random(1,50), internal::random(1,50))) ); - CALL_SUBTEST_6( adjoint(MatrixXf(internal::random(1,50), internal::random(1,50))) ); + CALL_SUBTEST_4( adjoint(MatrixXcf(internal::random(1,EIGEN_TEST_MAX_SIZE/2), internal::random(1,EIGEN_TEST_MAX_SIZE/2))) ); + CALL_SUBTEST_5( adjoint(MatrixXi(internal::random(1,EIGEN_TEST_MAX_SIZE), internal::random(1,EIGEN_TEST_MAX_SIZE))) ); + CALL_SUBTEST_6( adjoint(MatrixXf(internal::random(1,EIGEN_TEST_MAX_SIZE), internal::random(1,EIGEN_TEST_MAX_SIZE))) ); } - // test a large matrix only once + // test a large static matrix only once CALL_SUBTEST_7( adjoint(Matrix()) ); #ifdef EIGEN_TEST_PART_4 -- cgit v1.2.3