aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/stl_iterators.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-10-11 09:29:56 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-10-11 09:29:56 +0200
commit1d5a6363ea4923afe8f814337dd84a593a6ae504 (patch)
tree96cf92e62931d7b4d88a7fe1bd6cc1126b2a3ac9 /test/stl_iterators.cpp
parentf0aa7e40fcb9745129d0ec61802f594fddf1a657 (diff)
relax numerical tests from equal to approx (x87)
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