# HG changeset patch
# User Alpar Juttner <alpar@cs.elte.hu>
# Date 1254037640 -7200
# Node ID 4792459983d0b8a6b90a1191864d74d45f6461ab
# Parent  1f08e846df296135814062a8a9c4feb22c76d4ab
Fix (and improve) error message in mip_test.cc (#317)

diff -r 1f08e846df29 -r 4792459983d0 test/mip_test.cc
--- a/test/mip_test.cc	Tue Aug 18 10:24:31 2009 +0200
+++ b/test/mip_test.cc	Sun Sep 27 09:47:20 2009 +0200
@@ -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)
   }