diff --git a/branches/newMo/test/moTestClass.h b/branches/newMo/test/moTestClass.h new file mode 100644 index 000000000..58d17e6bb --- /dev/null +++ b/branches/newMo/test/moTestClass.h @@ -0,0 +1,16 @@ +#ifndef _moTestClass_h +#define _moTestClass_h + +#include +#include + +typedef EO Solution; + +class moDummyNeighbor : public moNeighbor{ + + virtual void eval(Solution & solution){} + + virtual void move(Solution & solution){} +}; + +#endif diff --git a/branches/newMo/test/t-moNeighbor.cpp b/branches/newMo/test/t-moNeighbor.cpp new file mode 100644 index 000000000..2501e3bb4 --- /dev/null +++ b/branches/newMo/test/t-moNeighbor.cpp @@ -0,0 +1,19 @@ +#include "moTestClass.h" + +#include + +int main(){ + + moDummyNeighbor n1; + +// n1.fitness(12); + +// moDummyNeighbor n2(n1); + +// assert(n1.fitness() == n2.fitness()); + +// n3=n1; +// assert(n1.fitness() == n3.fitness()); + + return EXIT_SUCCESS; +}