diff -r cd72eae05bdf -r 3c00344f49c9 test/arc_look_up_test.cc --- a/test/arc_look_up_test.cc Mon Jul 16 16:21:40 2018 +0200 +++ b/test/arc_look_up_test.cc Wed Oct 17 19:14:07 2018 +0200 @@ -2,7 +2,7 @@ * * This file is a part of LEMON, a generic C++ optimization library. * - * Copyright (C) 2003-2009 + * Copyright (C) 2003-2013 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport * (Egervary Research Group on Combinatorial Optimization, EGRES). * @@ -24,7 +24,6 @@ using namespace lemon; -const int lgfn = 4; const std::string lgf = "@nodes\n" "label\n" @@ -68,17 +67,17 @@ ListDigraph graph; std::istringstream lgfs(lgf); DigraphReader(graph, lgfs).run(); - + AllArcLookUp lookup(graph); - + int numArcs = countArcs(graph); - + int arcCnt = 0; for(ListDigraph::NodeIt n1(graph); n1 != INVALID; ++n1) for(ListDigraph::NodeIt n2(graph); n2 != INVALID; ++n2) for(ListDigraph::Arc a = lookup(n1, n2); a != INVALID; - a = lookup(n1, n2, a)) - ++arcCnt; + a = lookup(n1, n2, a)) + ++arcCnt; check(arcCnt==numArcs, "Wrong total number of arcs"); return 0;