aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nullary.cpp
diff options
context:
space:
mode:
authorGravatar Carlos Becker <carlosbecker@gmail.com>2010-06-30 19:17:29 +0100
committerGravatar Carlos Becker <carlosbecker@gmail.com>2010-06-30 19:17:29 +0100
commit97f3c7f2824dfeb4fb440870b218d7a6534e8e44 (patch)
tree192389ac8a5abd1ba47ad0e10c0771cc41f60466 /test/nullary.cpp
parent34d79b6a6310f24a32b0fb35cd0311539ef00131 (diff)
Fixed nullary test not passing on Core Duo
Diffstat (limited to 'test/nullary.cpp')
-rw-r--r--test/nullary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/nullary.cpp b/test/nullary.cpp
index f12d4c06e..c54999580 100644
--- a/test/nullary.cpp
+++ b/test/nullary.cpp
@@ -88,7 +88,7 @@ void testVectorType(const VectorType& base)
Matrix<Scalar,1,Dynamic> col_vector(size);
row_vector.setLinSpaced(low,high,size);
col_vector.setLinSpaced(low,high,size);
- VERIFY( (row_vector-col_vector.transpose()).norm() < NumTraits<Scalar>::epsilon() );
+ VERIFY( row_vector.isApprox(col_vector.transpose(), NumTraits<Scalar>::epsilon()));
Matrix<Scalar,Dynamic,1> size_changer(size+50);
size_changer.setLinSpaced(low,high,size);