From 1d5a6363ea4923afe8f814337dd84a593a6ae504 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 11 Oct 2018 09:29:56 +0200 Subject: relax numerical tests from equal to approx (x87) --- test/stl_iterators.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/stl_iterators.cpp') 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(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 -- cgit v1.2.3