diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-07-17 15:52:58 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-07-17 15:52:58 +0200 |
commit | dff3a92d527fd38c28152ab9259af1904a01f248 (patch) | |
tree | 6184304dd437e20e4d7ad3481b27e3a2e9be3fb0 /test/basicstuff.cpp | |
parent | 82f0ce27261df3b21037d93d4595655b3df754a6 (diff) |
Remove usage of #if EIGEN_TEST_PART_XX in unit tests that does not require them (splitting can thus be avoided for them)
Diffstat (limited to 'test/basicstuff.cpp')
-rw-r--r-- | test/basicstuff.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/basicstuff.cpp b/test/basicstuff.cpp index 5ad4090cd..85af603d8 100644 --- a/test/basicstuff.cpp +++ b/test/basicstuff.cpp @@ -194,7 +194,7 @@ template<typename MatrixType> void basicStuffComplex(const MatrixType& m) VERIFY(!static_cast<const MatrixType&>(cm).imag().isZero()); } -#ifdef EIGEN_TEST_PART_2 +template<int> void casting() { Matrix4f m = Matrix4f::Random(), m2; @@ -203,7 +203,6 @@ void casting() m2 = m.cast<float>(); // check the specialization when NewType == Type VERIFY(m.isApprox(m2)); } -#endif template <typename Scalar> void fixedSizeMatrixConstruction() @@ -290,5 +289,5 @@ EIGEN_DECLARE_TEST(basicstuff) CALL_SUBTEST_1(fixedSizeMatrixConstruction<long int>()); CALL_SUBTEST_1(fixedSizeMatrixConstruction<std::ptrdiff_t>()); - CALL_SUBTEST_2(casting()); + CALL_SUBTEST_2(casting<0>()); } |