[Lemon-commits] Alpar Juttner: Fix (and improve) error message i...

Lemon HG hg at lemon.cs.elte.hu
Mon Oct 5 20:25:47 CEST 2009


details:   http://lemon.cs.elte.hu/hg/lemon/rev/4792459983d0
changeset: 803:4792459983d0
user:      Alpar Juttner <alpar [at] cs.elte.hu>
date:      Sun Sep 27 09:47:20 2009 +0200
description:
	Fix (and improve) error message in mip_test.cc (#317)

diffstat:

 test/mip_test.cc |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff --git a/test/mip_test.cc b/test/mip_test.cc
--- a/test/mip_test.cc
+++ b/test/mip_test.cc
@@ -50,7 +50,8 @@
 
   if (stat ==  MipSolver::OPTIMAL) {
     std::ostringstream sbuf;
-    buf << "Wrong optimal value: the right optimum is " << exp_opt;
+    sbuf << "Wrong optimal value ("<< mip.solValue()
+         <<" instead of " << exp_opt << ")";
     check(std::abs(mip.solValue()-exp_opt) < 1e-3, sbuf.str());
     //+ecvt(exp_opt,2)
   }



More information about the Lemon-commits mailing list