[coin-or-lemon] Add the patch. Whoops.
amluto
amluto at fedoraproject.org
Thu Jun 5 20:06:04 UTC 2014
commit f47cdf1f37b8906637b8162538c256443ead5442
Author: Andy Lutomirski <luto at amacapital.net>
Date: Thu Jun 5 13:06:03 2014 -0700
Add the patch. Whoops.
lemon-1.3-tsp_test-1ba759c76810.patch | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/lemon-1.3-tsp_test-1ba759c76810.patch b/lemon-1.3-tsp_test-1ba759c76810.patch
new file mode 100644
index 0000000..e9351c2
--- /dev/null
+++ b/lemon-1.3-tsp_test-1ba759c76810.patch
@@ -0,0 +1,21 @@
+# HG changeset patch
+# User Alpar Juttner <alpar at cs.elte.hu>
+# Date 1390400883 -3600
+# Wed Jan 22 15:28:03 2014 +0100
+# Node ID 1ba759c76810037cdf3bf087e56606f282fec455
+# Parent 62dba6c90f359c7a4f713131a5a025c1821d951e
+Bugfix in tsp_test (#476)
+
+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 scm-commits
mailing list