aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nullary.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-06-08 13:29:27 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-06-08 13:29:27 +0200
commit4b5d359c3afc2caf5f2f89e2f44f13243bacb5f7 (patch)
tree62b6a0cbe56520215520bda8db1ac48329e0ba63 /test/nullary.cpp
parent626afe8b625c7bbccf84698dd27c7fe56cce01dd (diff)
improve/fix stable_norm unit test
Diffstat (limited to 'test/nullary.cpp')
-rw-r--r--test/nullary.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/nullary.cpp b/test/nullary.cpp
index 3adfc33fe..6e91ddd52 100644
--- a/test/nullary.cpp
+++ b/test/nullary.cpp
@@ -51,8 +51,8 @@ void testVectorType(const VectorType& base)
{
typedef typename ei_traits<VectorType>::Scalar Scalar;
Scalar low = ei_random<Scalar>(-500,500);
- Scalar high = ei_random<Scalar>(-500,500);
- if (low>high) std::swap(low,high);
+ Scalar high = ei_random<Scalar>(-500,500);
+ if (low>high) std::swap(low,high);
const int size = base.size();
const Scalar step = (high-low)/(size-1);
@@ -91,7 +91,7 @@ void testVectorType(const VectorType& base)
Matrix<Scalar,Dynamic,1> size_changer(size+50);
size_changer.setLinSpaced(low,high,size);
- VERIFY( size_changer.size() == size );
+ VERIFY( size_changer.size() == size );
}
template<typename MatrixType>