diff options
Diffstat (limited to 'test/sum.cpp')
-rw-r--r-- | test/sum.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sum.cpp b/test/sum.cpp index 58e5eb9d3..bfd4d0667 100644 --- a/test/sum.cpp +++ b/test/sum.cpp @@ -64,7 +64,7 @@ template<typename VectorType> void vectorSum(const VectorType& w) { Scalar s = Scalar(0); for(int j = i; j < size-i; j++) s += v[j]; - VERIFY_IS_APPROX(s, v.block(i, size-2*i).sum()); + VERIFY_IS_APPROX(s, v.segment(i, size-2*i).sum()); } } |