[Lemon-commits] Alpar Juttner: Bugfix in tsp_test (#476)
Lemon HG
hg at lemon.cs.elte.hu
Wed Jan 22 15:42:16 CET 2014
details: http://lemon.cs.elte.hu/hg/lemon/rev/1ba759c76810
changeset: 1303:1ba759c76810
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Wed Jan 22 15:28:03 2014 +0100
description:
Bugfix in tsp_test (#476)
diffstat:
test/tsp_test.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff --git a/test/tsp_test.cc b/test/tsp_test.cc
--- a/test/tsp_test.cc
+++ b/test/tsp_test.cc
@@ -132,7 +132,8 @@
unsigned nsize = n;
int esize = n <= 1 ? 0 : n;
- TSP alg(g, constMap<Edge, int>(1));
+ ConstMap<Edge, int> cost_map(1);
+ TSP alg(g, cost_map);
check(alg.run() == esize, alg_name + ": Wrong total cost");
check(alg.tourCost() == esize, alg_name + ": Wrong total cost");
More information about the Lemon-commits
mailing list