diff --git a/test/schur_real.cpp b/test/schur_real.cpp index e67db6433..cfe4570d4 100644 --- a/test/schur_real.cpp +++ b/test/schur_real.cpp @@ -91,7 +91,7 @@ template void schur(int size = MatrixType::ColsAtCompileTim VERIFY_IS_EQUAL(rs1.matrixT(), rsOnlyT.matrixT()); VERIFY_RAISES_ASSERT(rsOnlyT.matrixU()); - if (size > 2 && rows < 20) + if (size > 2 && size < 20) { // Test matrix with NaN A(0,0) = std::numeric_limits::quiet_NaN();