aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/stl_iterators.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/stl_iterators.cpp')
-rw-r--r--test/stl_iterators.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/stl_iterators.cpp b/test/stl_iterators.cpp
index d8e6e8106..6cc31a3ef 100644
--- a/test/stl_iterators.cpp
+++ b/test/stl_iterators.cpp
@@ -283,11 +283,11 @@ void test_stl_iterators(int rows=Rows, int cols=Cols)
j = internal::random<Index>(0,A.cols()-1);
typename ColMatrixType::ColXpr Acol = A.col(j);
std::partial_sum(Acol.begin(), Acol.end(), v.begin());
- VERIFY_IS_EQUAL(v(seq(1,last)), v(seq(0,last-1))+Acol(seq(1,last)));
+ VERIFY_IS_APPROX(v(seq(1,last)), v(seq(0,last-1))+Acol(seq(1,last)));
// inplace
std::partial_sum(Acol.begin(), Acol.end(), Acol.begin());
- VERIFY_IS_EQUAL(v, Acol);
+ VERIFY_IS_APPROX(v, Acol);
}
// stress random access as required by std::nth_element