test updated
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1805 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
fb4a9f1df7
commit
e86685bea6
2 changed files with 24 additions and 0 deletions
|
|
@ -32,11 +32,24 @@ Contact: paradiseo-help@lists.gforge.inria.fr
|
|||
#include <cassert>
|
||||
|
||||
#include <perturb/moLocalSearchInit.h>
|
||||
#include <algo/moDummyLS.h>
|
||||
#include "moTestClass.h"
|
||||
#include <eval/oneMaxEval.h>
|
||||
|
||||
|
||||
int main(){
|
||||
|
||||
std::cout << "[t-moLocalSearchInit] => START" << std::endl;
|
||||
|
||||
oneMaxEval<bitVector> fullEval;
|
||||
moDummyLS<bitNeighbor> ls(fullEval);
|
||||
dummyInit init;
|
||||
bitVector sol;
|
||||
sol.fitness(0);
|
||||
|
||||
moLocalSearchInit<bitNeighbor> test(init, ls);
|
||||
|
||||
test(sol);
|
||||
|
||||
std::cout << "[t-moLocalSearchInit] => OK" << std::endl;
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,17 @@ int main(){
|
|||
|
||||
std::cout << "[t-moSolInit] => START" << std::endl;
|
||||
|
||||
int a=3;
|
||||
|
||||
int b=5;
|
||||
|
||||
moSolInit<int> test(a);
|
||||
|
||||
test(b);
|
||||
assert(b==3);
|
||||
a=4;
|
||||
test(b);
|
||||
assert(b==4);
|
||||
|
||||
std::cout << "[t-moSolInit] => OK" << std::endl;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue