From 4b5d359c3afc2caf5f2f89e2f44f13243bacb5f7 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 8 Jun 2010 13:29:27 +0200 Subject: improve/fix stable_norm unit test --- test/nullary.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/nullary.cpp') 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::Scalar Scalar; Scalar low = ei_random(-500,500); - Scalar high = ei_random(-500,500); - if (low>high) std::swap(low,high); + Scalar high = ei_random(-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 size_changer(size+50); size_changer.setLinSpaced(low,high,size); - VERIFY( size_changer.size() == size ); + VERIFY( size_changer.size() == size ); } template -- cgit v1.2.3