From 64e7860817b9fa289c9405c76bb89fb6d48e3e87 Mon Sep 17 00:00:00 2001 From: boufaras Date: Thu, 7 Jul 2011 12:32:06 +0000 Subject: [PATCH] remplace [assert(std=sqrt(1.25))] with [assert(std*std==1.25)] git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2302 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-mo/test/t-moStatistics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/paradiseo-mo/test/t-moStatistics.cpp b/trunk/paradiseo-mo/test/t-moStatistics.cpp index c59034e06..98cd1e4f3 100644 --- a/trunk/paradiseo-mo/test/t-moStatistics.cpp +++ b/trunk/paradiseo-mo/test/t-moStatistics.cpp @@ -58,7 +58,8 @@ int main() { assert(min==2); assert(max==5); assert(avg==3.5); - assert(std==sqrt(1.25)); + assert(std*std==1.25); + sampling.resize(0); test.basic(sampling, min, max, avg, std);