# HG changeset patch # User Alpar Juttner # Date 2009-09-27 09:47:20 # Node ID 4792459983d0b8a6b90a1191864d74d45f6461ab # Parent 1f08e846df296135814062a8a9c4feb22c76d4ab Fix (and improve) error message in mip_test.cc (#317) 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) }