From 47e89026d0a94800ca6b20226e6e44927b5b7bc8 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 10 Jun 2013 10:34:03 +0200 Subject: [PATCH] Check sparse matrices with short indices --- test/sparse_basic.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/sparse_basic.cpp b/test/sparse_basic.cpp index c573ae517..ad06e87ba 100644 --- a/test/sparse_basic.cpp +++ b/test/sparse_basic.cpp @@ -179,16 +179,16 @@ template void sparse_basic(const SparseMatrixType& re m3.insertByOuterInner(j,k) = k+1; for(int j=0; j0) - VERIFY(j==internal::real(m3.innerVector(j).lastCoeff())); + VERIFY(j==math::real(m3.innerVector(j).lastCoeff())); } m3.makeCompressed(); for(int j=0; j0) - VERIFY(j==internal::real(m3.innerVector(j).lastCoeff())); + VERIFY(j==math::real(m3.innerVector(j).lastCoeff())); } //m2.innerVector(j0) = 2*m2.innerVector(j1); @@ -467,5 +467,8 @@ void test_sparse_basic() CALL_SUBTEST_1(( sparse_basic(SparseMatrix(s, s)) )); CALL_SUBTEST_1(( sparse_basic(SparseMatrix(s, s)) )); CALL_SUBTEST_1(( sparse_basic(SparseMatrix(s, s)) )); + + CALL_SUBTEST_1(( sparse_basic(SparseMatrix(s, s)) )); + CALL_SUBTEST_1(( sparse_basic(SparseMatrix(s, s)) )); } }