1.1 --- a/test/mip_test.cc Thu Feb 26 09:39:02 2009 +0000
1.2 +++ b/test/mip_test.cc Thu Feb 26 07:39:16 2009 +0000
1.3 @@ -106,6 +106,17 @@
1.4
1.5 }
1.6
1.7 +template<class MIP>
1.8 +void cloneTest()
1.9 +{
1.10 +
1.11 + MIP* mip = new MIP();
1.12 + MIP* mipnew = mip->newSolver();
1.13 + MIP* mipclone = mip->cloneSolver();
1.14 + delete mip;
1.15 + delete mipnew;
1.16 + delete mipclone;
1.17 +}
1.18
1.19 int main()
1.20 {
1.21 @@ -114,6 +125,7 @@
1.22 {
1.23 GlpkMip mip1;
1.24 aTest(mip1);
1.25 + cloneTest<GlpkMip>();
1.26 }
1.27 #endif
1.28
1.29 @@ -129,6 +141,7 @@
1.30 std::cerr << "Cplex license check failed, lp check skipped" << std::endl;
1.31 #endif
1.32 }
1.33 + cloneTest<CplexMip>();
1.34 #endif
1.35
1.36 return 0;