diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-07-04 14:04:07 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-07-04 14:04:07 +0200 |
commit | 282b5614ed5ed9768107ff29dcf26a2324a94db9 (patch) | |
tree | f25dae95bfacb1fd051e8327451b796a453d1e24 /test/redux.cpp | |
parent | 0c25f868c7a834e31a2c58bd6a6bf717270608a5 (diff) |
Relaxed precision test.
Diffstat (limited to 'test/redux.cpp')
-rw-r--r-- | test/redux.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/redux.cpp b/test/redux.cpp index bcc435d0e..b28252903 100644 --- a/test/redux.cpp +++ b/test/redux.cpp @@ -102,7 +102,7 @@ template<typename VectorType> void vectorRedux(const VectorType& w) minc = std::min(minc, ei_real(v[j])); maxc = std::max(maxc, ei_real(v[j])); } - VERIFY_IS_APPROX(s, v.tail(size-i).sum()); + VERIFY_IS_MUCH_SMALLER_THAN(ei_abs(s - v.tail(size-i).sum()), Scalar(1)); VERIFY_IS_APPROX(p, v.tail(size-i).prod()); VERIFY_IS_APPROX(minc, v.real().tail(size-i).minCoeff()); VERIFY_IS_APPROX(maxc, v.real().tail(size-i).maxCoeff()); |