From 455e6e38b6986f9081b07c79e53aa9fa50ce4edd Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 27 Feb 2013 08:07:18 +0100 Subject: Fix two numerical issues in unit tests. --- test/ref.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ref.cpp') diff --git a/test/ref.cpp b/test/ref.cpp index 2ca572813..bdc948433 100644 --- a/test/ref.cpp +++ b/test/ref.cpp @@ -42,7 +42,7 @@ template void ref_matrix(const MatrixType& m) typedef Ref ConstRefDynMat; typedef Ref > RefRealMatWithStride; - Index rows = m.rows(), cols = m.cols(), size = rows*cols; + Index rows = m.rows(), cols = m.cols(); MatrixType m1 = MatrixType::Random(rows, cols), m2 = m1; @@ -136,7 +136,7 @@ template void ref_vector(const VectorType& m) VERIFY_IS_EQUAL(mat1, mat2); rm5.noalias() = rm4.transpose() * mat3; mat2.row(i) = v2.real().transpose() * mat3; - VERIFY_IS_EQUAL(mat1, mat2); + VERIFY_IS_APPROX(mat1, mat2); } template void check_const_correctness(const PlainObjectType&) -- cgit v1.2.3