diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2010-06-10 19:18:19 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2010-06-10 19:18:19 +0100 |
commit | 54235879a9818d1a96a894f1af03cc4aa5631660 (patch) | |
tree | 2ea700dd5a437411dc8e3f87f5f5b05b23cd338d /test/basicstuff.cpp | |
parent | 986f65c402f3e351f41fdfec8031d8a9065b4dfa (diff) |
Make test slightly fuzzy to account for effect of extended precision.
Diffstat (limited to 'test/basicstuff.cpp')
-rw-r--r-- | test/basicstuff.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/basicstuff.cpp b/test/basicstuff.cpp index 53b503f46..ddddb5985 100644 --- a/test/basicstuff.cpp +++ b/test/basicstuff.cpp @@ -138,7 +138,8 @@ template<typename MatrixType> void basicStuffComplex(const MatrixType& m) VERIFY(ei_imag(s1)==ei_imag_ref(s1)); ei_real_ref(s1) = ei_real(s2); ei_imag_ref(s1) = ei_imag(s2); - VERIFY(s1==s2); + VERIFY(ei_isApprox(s1, s2, NumTraits<RealScalar>::epsilon())); + // extended precision in Intel FPUs means that s1 == s2 in the line above is not guaranteed. RealMatrixType rm1 = RealMatrixType::Random(rows,cols), rm2 = RealMatrixType::Random(rows,cols); |