diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2018-11-12 06:42:35 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-11-12 06:42:35 +0100 |
| commit | 407b6208604d2822b1067ac64949e78a9167572b (patch) | |
| tree | 8e4371deef2804e77e2fe6e17158be2536de28da /eigen/test/selfadjoint.cpp | |
| parent | ca2e0fcdcfff03747500344e2522ff330ccafa14 (diff) | |
eigen update
Diffstat (limited to 'eigen/test/selfadjoint.cpp')
| -rw-r--r-- | eigen/test/selfadjoint.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/eigen/test/selfadjoint.cpp b/eigen/test/selfadjoint.cpp index 92401e5..aaa4888 100644 --- a/eigen/test/selfadjoint.cpp +++ b/eigen/test/selfadjoint.cpp @@ -7,6 +7,7 @@ // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. +#define TEST_CHECK_STATIC_ASSERTIONS #include "main.h" // This file tests the basic selfadjointView API, @@ -45,6 +46,9 @@ template<typename MatrixType> void selfadjoint(const MatrixType& m) m4 = m2; m4 -= m1.template selfadjointView<Lower>(); VERIFY_IS_APPROX(m4, m2-m3); + + VERIFY_RAISES_STATIC_ASSERT(m2.template selfadjointView<StrictlyUpper>()); + VERIFY_RAISES_STATIC_ASSERT(m2.template selfadjointView<UnitLower>()); } void bug_159() |
