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
|
|
@ -35,8 +35,11 @@ Contact: paradiseo-help@lists.gforge.inria.fr
|
|||
#include <continuator/moNeutralDegreeNeighborStat.h>
|
||||
#include <continuator/moSecondMomentNeighborStat.h>
|
||||
#include <continuator/moSizeNeighborStat.h>
|
||||
#include <continuator/moAverageFitnessNeighborStat.h>
|
||||
#include <continuator/moStdFitnessNeighborStat.h>
|
||||
#include <comparator/moNeighborComparator.h>
|
||||
#include <comparator/moSolNeighborComparator.h>
|
||||
|
||||
#include "moTestClass.h"
|
||||
|
||||
#include <iostream>
|
||||
|
|
@ -147,6 +150,22 @@ int main() {
|
|||
assert(test8.className()=="moSizeNeighborStat");
|
||||
std::cout << "[t-moSizeNeighborStat] => OK" << std::endl;
|
||||
|
||||
//test of moAverageFitnessNeighborStat.h
|
||||
std::cout << "[t-moAverageFitnessNeighborStat] => START" << std::endl;
|
||||
moAverageFitnessNeighborStat<bitNeighbor> test9(test);
|
||||
test9(sol);
|
||||
assert(test9.value()==6.6);
|
||||
assert(test9.className()=="moAverageFitnessNeighborStat");
|
||||
std::cout << "[t-moAverageFitnessNeighborStat] => OK" << std::endl;
|
||||
|
||||
//test of moStdFitnessNeighborStat.h
|
||||
std::cout << "[t-moStdFitnessNeighborStat] => START" << std::endl;
|
||||
moStdFitnessNeighborStat<bitNeighbor> test10(test);
|
||||
test10(sol);
|
||||
assert(test10.value()> 0.966 && test10.value() < 0.967);
|
||||
assert(test10.className()=="moStdFitnessNeighborStat");
|
||||
std::cout << "[t-moStdFitnessNeighborStat] => OK" << std::endl;
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue