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;