test updated
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1806 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
e86685bea6
commit
80776a5e6c
4 changed files with 84 additions and 0 deletions
|
|
@ -32,11 +32,27 @@ Contact: paradiseo-help@lists.gforge.inria.fr
|
|||
#include <cassert>
|
||||
|
||||
#include <continuator/moFitContinuator.h>
|
||||
#include "moTestClass.h"
|
||||
|
||||
int main(){
|
||||
|
||||
std::cout << "[t-moFitContinuator] => START" << std::endl;
|
||||
|
||||
moFitContinuator<bitNeighbor> test1(3);
|
||||
moFitContinuator<moDummyNeighborTest> test2(5);
|
||||
|
||||
bitVector sol1;
|
||||
Solution sol2;
|
||||
|
||||
sol1.fitness(4);
|
||||
assert(test1(sol1));
|
||||
sol1.fitness(3);
|
||||
assert(!test1(sol1));
|
||||
|
||||
sol2.fitness(3);
|
||||
assert(test2(sol2));
|
||||
sol2.fitness(5);
|
||||
assert(!test2(sol2));
|
||||
|
||||
std::cout << "[t-moFitContinuator] => OK" << std::endl;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue