From 10835c3a36abbbbb49112174005045770f167dd2 Mon Sep 17 00:00:00 2001 From: jhumeau Date: Fri, 15 Jan 2010 15:11:13 +0000 Subject: [PATCH] =?UTF-8?q?Un=20debut=20de=20test=20quand=20mm=20j'avais?= =?UTF-8?q?=20essay=C3=A9...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1647 331e1502-861f-0410-8da2-ba01fb791d7f --- branches/newMo/test/moTestClass.h | 16 ++++++++++++++++ branches/newMo/test/t-moNeighbor.cpp | 19 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 branches/newMo/test/moTestClass.h create mode 100644 branches/newMo/test/t-moNeighbor.cpp 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; +}