From e86685bea60cb1ef4ce00c28fca1f4949c2fd5c8 Mon Sep 17 00:00:00 2001 From: jhumeau Date: Fri, 7 May 2010 15:43:45 +0000 Subject: [PATCH] test updated git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1805 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-mo/test/t-moLocalSearchInit.cpp | 13 +++++++++++++ trunk/paradiseo-mo/test/t-moSolInit.cpp | 11 +++++++++++ 2 files changed, 24 insertions(+) diff --git a/trunk/paradiseo-mo/test/t-moLocalSearchInit.cpp b/trunk/paradiseo-mo/test/t-moLocalSearchInit.cpp index bcdf12b40..43d2e9d0b 100644 --- a/trunk/paradiseo-mo/test/t-moLocalSearchInit.cpp +++ b/trunk/paradiseo-mo/test/t-moLocalSearchInit.cpp @@ -32,11 +32,24 @@ Contact: paradiseo-help@lists.gforge.inria.fr #include #include +#include +#include "moTestClass.h" +#include + int main(){ std::cout << "[t-moLocalSearchInit] => START" << std::endl; + oneMaxEval fullEval; + moDummyLS ls(fullEval); + dummyInit init; + bitVector sol; + sol.fitness(0); + + moLocalSearchInit test(init, ls); + + test(sol); std::cout << "[t-moLocalSearchInit] => OK" << std::endl; diff --git a/trunk/paradiseo-mo/test/t-moSolInit.cpp b/trunk/paradiseo-mo/test/t-moSolInit.cpp index 0ace1ddf1..e1770738c 100644 --- a/trunk/paradiseo-mo/test/t-moSolInit.cpp +++ b/trunk/paradiseo-mo/test/t-moSolInit.cpp @@ -37,6 +37,17 @@ int main(){ std::cout << "[t-moSolInit] => START" << std::endl; + int a=3; + + int b=5; + + moSolInit test(a); + + test(b); + assert(b==3); + a=4; + test(b); + assert(b==4); std::cout << "[t-moSolInit] => OK" << std::endl;