# HG changeset patch
# User Alpar Juttner <alpar@cs.elte.hu>
# Date 1254037640 -7200
# Node ID 860cdc983618fa9bf8d0fa63cbe4ac171560758f
# Parent 0977046c60d27196e3b008fe9f65350180ec5362
Fix (and improve) error message in mip_test.cc
diff --git a/test/mip_test.cc b/test/mip_test.cc
a
|
b
|
|
50 | 50 | |
51 | 51 | if (stat == MipSolver::OPTIMAL) { |
52 | 52 | std::ostringstream sbuf; |
53 | | buf << "Wrong optimal value: the right optimum is " << exp_opt; |
| 53 | sbuf << "Wrong optimal value ("<< mip.solValue() |
| 54 | <<" instead of " << exp_opt << ")"; |
54 | 55 | check(std::abs(mip.solValue()-exp_opt) < 1e-3, sbuf.str()); |
55 | 56 | //+ecvt(exp_opt,2) |
56 | 57 | } |