aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-02-14 21:15:58 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-02-14 21:15:58 +0100
commit9cc016d3f94d3516c408321f2df71cbf0d65b16d (patch)
tree310a1d67634c09c07f6d6c2f328d4beb52969fd3 /test
parentf8407742c19f57a90b657c12f9b086058fb70da3 (diff)
Update basicstuff unit test to avoid instantiating the ambiguous sqrt(int)
Diffstat (limited to 'test')
-rw-r--r--test/basicstuff.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/basicstuff.cpp b/test/basicstuff.cpp
index 48db531c1..0fbae19e8 100644
--- a/test/basicstuff.cpp
+++ b/test/basicstuff.cpp
@@ -52,8 +52,7 @@ template<typename MatrixType> void basicStuff(const MatrixType& m)
VERIFY_IS_APPROX( v1, v1);
VERIFY_IS_NOT_APPROX( v1, 2*v1);
VERIFY_IS_MUCH_SMALLER_THAN( vzero, v1);
- if(!NumTraits<Scalar>::IsInteger)
- VERIFY_IS_MUCH_SMALLER_THAN( vzero, v1.norm());
+ VERIFY_IS_MUCH_SMALLER_THAN( vzero, v1.squaredNorm());
VERIFY_IS_NOT_MUCH_SMALLER_THAN(v1, v1);
VERIFY_IS_APPROX( vzero, v1-v1);
VERIFY_IS_APPROX( m1, m1);