Bugfix in tsp_test (#476)
authorAlpar Juttner <alpar@cs.elte.hu>
Wed, 22 Jan 2014 15:28:03 +0100
changeset 11151ba759c76810
parent 1113 62dba6c90f35
child 1116 c180a66f6edd
child 1117 e937009e4c5f
Bugfix in tsp_test (#476)
test/tsp_test.cc
     1.1 --- a/test/tsp_test.cc	Thu Oct 24 13:04:00 2013 +0200
     1.2 +++ b/test/tsp_test.cc	Wed Jan 22 15:28:03 2014 +0100
     1.3 @@ -132,7 +132,8 @@
     1.4      unsigned nsize = n;
     1.5      int esize = n <= 1 ? 0 : n;
     1.6  
     1.7 -    TSP alg(g, constMap<Edge, int>(1));
     1.8 +    ConstMap<Edge, int> cost_map(1);
     1.9 +    TSP alg(g, cost_map);
    1.10  
    1.11      check(alg.run() == esize, alg_name + ": Wrong total cost");
    1.12      check(alg.tourCost() == esize, alg_name + ": Wrong total cost");