Ajout des tests des evals
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1666 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
88afa96663
commit
50359071ef
7 changed files with 90 additions and 3 deletions
29
branches/newMo/test/t-moFullEvalByCopy.cpp
Normal file
29
branches/newMo/test/t-moFullEvalByCopy.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include "moTestClass.h"
|
||||
#include <eval/moFullEvalByCopy.h>
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
int main(){
|
||||
|
||||
//Pas grand chose à faire: le gros du travail est fait par le voisin et l'eval
|
||||
|
||||
std::cout << "[t-moFullEvalByCopy] => START" << std::endl;
|
||||
|
||||
Solution sol;
|
||||
moDummyNeighbor neighbor;
|
||||
moDummyEval eval;
|
||||
|
||||
//verif constructor
|
||||
moFullEvalByCopy<moDummyNeighbor> test(eval);
|
||||
|
||||
sol.fitness(3);
|
||||
|
||||
//verif operator()
|
||||
test(sol,neighbor);
|
||||
assert(sol.fitness()==3);
|
||||
|
||||
std::cout << "[t-moFullEvalByCopy] => OK" << std::endl;
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue