Changeset 1083:3e711ee55d31 in lemon-main for test
- Timestamp:
- 08/07/13 06:29:34 (11 years ago)
- Branch:
- default
- Children:
- 1084:8b2d4e5d96e4, 1089:552e3d1242c6
- Phase:
- public
- Location:
- test
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
test/adaptors_test.cc
r997 r1083 66 66 Digraph::Arc a2 = digraph.addArc(n1, n3); 67 67 Digraph::Arc a3 = digraph.addArc(n2, n3); 68 ignore_unused_variable_warning(a3);68 ::lemon::ignore_unused_variable_warning(a3); 69 69 70 70 // Check the adaptor … … 101 101 Adaptor::Arc a7 = adaptor.addArc(n1, n4); 102 102 Adaptor::Arc a8 = adaptor.addArc(n1, n2); 103 ignore_unused_variable_warning(a6,a7,a8);103 ::lemon::ignore_unused_variable_warning(a6,a7,a8); 104 104 105 105 adaptor.erase(a1); … … 761 761 Digraph::Arc a2 = digraph.addArc(n1, n3); 762 762 Digraph::Arc a3 = digraph.addArc(n2, n3); 763 ignore_unused_variable_warning(a1,a2,a3);763 ::lemon::ignore_unused_variable_warning(a1,a2,a3); 764 764 765 765 checkGraphNodeList(adaptor, 6); -
test/bfs_test.cc
r1007 r1083 62 62 Arc e; 63 63 int l, i; 64 ignore_unused_variable_warning(l,i);64 ::lemon::ignore_unused_variable_warning(l,i); 65 65 bool b; 66 66 BType::DistMap d(G); … … 152 152 Digraph g; 153 153 bool b; 154 ignore_unused_variable_warning(b);154 ::lemon::ignore_unused_variable_warning(b); 155 155 156 156 bfs(g).run(Node()); -
test/circulation_test.cc
r1007 r1083 74 74 VType v; 75 75 bool b; 76 ignore_unused_variable_warning(v,b);76 ::lemon::ignore_unused_variable_warning(v,b); 77 77 78 78 typedef Circulation<Digraph, CapMap, CapMap, SupplyMap> … … 100 100 const_circ_test.barrierMap(bar); 101 101 102 ignore_unused_variable_warning(fm);102 ::lemon::ignore_unused_variable_warning(fm); 103 103 } 104 104 -
test/connectivity_test.cc
r997 r1083 69 69 Graph g(d); 70 70 Digraph::Node n = d.addNode(); 71 ignore_unused_variable_warning(n);71 ::lemon::ignore_unused_variable_warning(n); 72 72 73 73 check(stronglyConnected(d), "This digraph is strongly connected"); … … 247 247 Digraph::Node watch = d.addNode(); 248 248 Digraph::Node pants = d.addNode(); 249 ignore_unused_variable_warning(watch);249 ::lemon::ignore_unused_variable_warning(watch); 250 250 251 251 d.addArc(socks, shoe); -
test/dfs_test.cc
r1007 r1083 68 68 int l, i; 69 69 bool b; 70 ignore_unused_variable_warning(l,i,b);70 ::lemon::ignore_unused_variable_warning(l,i,b); 71 71 72 72 DType::DistMap d(G); … … 154 154 Digraph g; 155 155 bool b; 156 ignore_unused_variable_warning(b);156 ::lemon::ignore_unused_variable_warning(b); 157 157 158 158 dfs(g).run(Node()); -
test/digraph_test.cc
r997 r1083 61 61 a3 = G.addArc(n2, n3), 62 62 a4 = G.addArc(n2, n3); 63 ignore_unused_variable_warning(a2,a3,a4);63 ::lemon::ignore_unused_variable_warning(a2,a3,a4); 64 64 65 65 checkGraphNodeList(G, 3); … … 90 90 Arc a1 = G.addArc(n1, n2), a2 = G.addArc(n2, n1), 91 91 a3 = G.addArc(n2, n3), a4 = G.addArc(n2, n3); 92 ignore_unused_variable_warning(a1,a2,a3,a4);92 ::lemon::ignore_unused_variable_warning(a1,a2,a3,a4); 93 93 94 94 Node n4 = G.split(n2); … … 124 124 a3 = G.addArc(n4, n3), a4 = G.addArc(n4, n3), 125 125 a5 = G.addArc(n2, n4); 126 ignore_unused_variable_warning(a1,a2,a3,a5);126 ::lemon::ignore_unused_variable_warning(a1,a2,a3,a5); 127 127 128 128 checkGraphNodeList(G, 4); … … 204 204 a3 = G.addArc(n4, n3), a4 = G.addArc(n3, n1), 205 205 a5 = G.addArc(n2, n4); 206 ignore_unused_variable_warning(a2,a3,a4,a5);206 ::lemon::ignore_unused_variable_warning(a2,a3,a4,a5); 207 207 208 208 // Check arc deletion … … 252 252 Arc a1 = G.addArc(n1, n2), a2 = G.addArc(n2, n1), 253 253 a3 = G.addArc(n2, n3), a4 = G.addArc(n2, n3); 254 ignore_unused_variable_warning(a1,a2,a3,a4);254 ::lemon::ignore_unused_variable_warning(a1,a2,a3,a4); 255 255 256 256 typename Digraph::Snapshot snapshot(G); … … 341 341 e1 = g.addArc(n1, n2), 342 342 e2 = g.addArc(n2, n3); 343 ignore_unused_variable_warning(e2);343 ::lemon::ignore_unused_variable_warning(e2); 344 344 345 345 check(g.valid(n1), "Wrong validity check"); -
test/dijkstra_test.cc
r1007 r1083 66 66 int i; 67 67 bool b; 68 ignore_unused_variable_warning(l,i,b);68 ::lemon::ignore_unused_variable_warning(l,i,b); 69 69 70 70 DType::DistMap d(G); … … 165 165 Digraph g; 166 166 bool b; 167 ignore_unused_variable_warning(b);167 ::lemon::ignore_unused_variable_warning(b); 168 168 169 169 dijkstra(g,LengthMap()).run(Node()); -
test/edge_set_test.cc
r997 r1083 45 45 46 46 Digraph::Arc ga1 = digraph.addArc(n1, n2); 47 ignore_unused_variable_warning(ga1);47 ::lemon::ignore_unused_variable_warning(ga1); 48 48 49 49 ArcSet arc_set(digraph); 50 50 51 51 Digraph::Arc ga2 = digraph.addArc(n2, n1); 52 ignore_unused_variable_warning(ga2);52 ::lemon::ignore_unused_variable_warning(ga2); 53 53 54 54 checkGraphNodeList(arc_set, 2); … … 78 78 a3 = arc_set.addArc(n2, n3), 79 79 a4 = arc_set.addArc(n2, n3); 80 ignore_unused_variable_warning(a2,a3,a4);80 ::lemon::ignore_unused_variable_warning(a2,a3,a4); 81 81 82 82 checkGraphNodeList(arc_set, 3); … … 115 115 116 116 Digraph::Arc ga1 = digraph.addArc(n1, n2); 117 ignore_unused_variable_warning(ga1);117 ::lemon::ignore_unused_variable_warning(ga1); 118 118 119 119 ArcSet arc_set(digraph); 120 120 121 121 Digraph::Arc ga2 = digraph.addArc(n2, n1); 122 ignore_unused_variable_warning(ga2);122 ::lemon::ignore_unused_variable_warning(ga2); 123 123 124 124 checkGraphNodeList(arc_set, 2); … … 148 148 a3 = arc_set.addArc(n2, n3), 149 149 a4 = arc_set.addArc(n2, n3); 150 ignore_unused_variable_warning(a2,a3,a4);150 ::lemon::ignore_unused_variable_warning(a2,a3,a4); 151 151 152 152 checkGraphNodeList(arc_set, 3); … … 199 199 200 200 Digraph::Arc ga1 = digraph.addArc(n1, n2); 201 ignore_unused_variable_warning(ga1);201 ::lemon::ignore_unused_variable_warning(ga1); 202 202 203 203 EdgeSet edge_set(digraph); 204 204 205 205 Digraph::Arc ga2 = digraph.addArc(n2, n1); 206 ignore_unused_variable_warning(ga2);206 ::lemon::ignore_unused_variable_warning(ga2); 207 207 208 208 checkGraphNodeList(edge_set, 2); … … 241 241 e3 = edge_set.addEdge(n2, n3), 242 242 e4 = edge_set.addEdge(n2, n3); 243 ignore_unused_variable_warning(e2,e3,e4);243 ::lemon::ignore_unused_variable_warning(e2,e3,e4); 244 244 245 245 checkGraphNodeList(edge_set, 3); … … 287 287 288 288 Digraph::Arc ga1 = digraph.addArc(n1, n2); 289 ignore_unused_variable_warning(ga1);289 ::lemon::ignore_unused_variable_warning(ga1); 290 290 291 291 EdgeSet edge_set(digraph); 292 292 293 293 Digraph::Arc ga2 = digraph.addArc(n2, n1); 294 ignore_unused_variable_warning(ga2);294 ::lemon::ignore_unused_variable_warning(ga2); 295 295 296 296 checkGraphNodeList(edge_set, 2); … … 329 329 e3 = edge_set.addEdge(n2, n3), 330 330 e4 = edge_set.addEdge(n2, n3); 331 ignore_unused_variable_warning(e2,e3,e4);331 ::lemon::ignore_unused_variable_warning(e2,e3,e4); 332 332 333 333 checkGraphNodeList(edge_set, 3); -
test/euler_test.cc
r997 r1083 102 102 Graph g(d); 103 103 Digraph::Node n = d.addNode(); 104 ignore_unused_variable_warning(n);104 ::lemon::ignore_unused_variable_warning(n); 105 105 106 106 checkDiEulerIt(d); … … 191 191 Digraph::Node n4 = d.addNode(); 192 192 Digraph::Node n5 = d.addNode(); 193 ignore_unused_variable_warning(n0,n4,n5);193 ::lemon::ignore_unused_variable_warning(n0,n4,n5); 194 194 195 195 d.addArc(n1, n2); -
test/gomory_hu_test.cc
r1007 r1083 51 51 Value v; 52 52 int d; 53 ignore_unused_variable_warning(v,d);53 ::lemon::ignore_unused_variable_warning(v,d); 54 54 55 55 GomoryHu<Graph, CapMap> gh_test(g, cap); -
test/graph_test.cc
r997 r1083 64 64 Edge e2 = G.addEdge(n2, n1), 65 65 e3 = G.addEdge(n2, n3); 66 ignore_unused_variable_warning(e2,e3);66 ::lemon::ignore_unused_variable_warning(e2,e3); 67 67 68 68 checkGraphNodeList(G, 3); … … 97 97 e3 = G.addEdge(n2, n3), e4 = G.addEdge(n1, n4), 98 98 e5 = G.addEdge(n4, n3); 99 ignore_unused_variable_warning(e1,e3,e4,e5);99 ::lemon::ignore_unused_variable_warning(e1,e3,e4,e5); 100 100 101 101 checkGraphNodeList(G, 4); … … 177 177 e3 = G.addEdge(n2, n3), e4 = G.addEdge(n1, n4), 178 178 e5 = G.addEdge(n4, n3); 179 ignore_unused_variable_warning(e1,e3,e4,e5);179 ::lemon::ignore_unused_variable_warning(e1,e3,e4,e5); 180 180 181 181 // Check edge deletion … … 218 218 Edge e1 = G.addEdge(n1, n2), e2 = G.addEdge(n2, n1), 219 219 e3 = G.addEdge(n2, n3); 220 ignore_unused_variable_warning(e1,e2,e3);220 ::lemon::ignore_unused_variable_warning(e1,e2,e3); 221 221 222 222 checkGraphNodeList(G, 3); … … 367 367 e1 = g.addEdge(n1, n2), 368 368 e2 = g.addEdge(n2, n3); 369 ignore_unused_variable_warning(e2);369 ::lemon::ignore_unused_variable_warning(e2); 370 370 371 371 check(g.valid(n1), "Wrong validity check"); … … 497 497 498 498 Node n = G.nodeFromId(dim); 499 ignore_unused_variable_warning(n);499 ::lemon::ignore_unused_variable_warning(n); 500 500 501 501 for (NodeIt n(G); n != INVALID; ++n) { -
test/hao_orlin_test.cc
r1007 r1083 67 67 CutMap cut; 68 68 Value v; 69 ignore_unused_variable_warning(v);69 ::lemon::ignore_unused_variable_warning(v); 70 70 71 71 HaoOrlin<Digraph, CapMap> ho_test(g, cap); -
test/maps_test.cc
r997 r1083 79 79 NullMap<A,B> map1; 80 80 NullMap<A,B> map2 = map1; 81 ignore_unused_variable_warning(map2);81 ::lemon::ignore_unused_variable_warning(map2); 82 82 map1 = nullMap<A,B>(); 83 83 } … … 90 90 ConstMap<A,B> map2 = B(); 91 91 ConstMap<A,B> map3 = map1; 92 ignore_unused_variable_warning(map2,map3);92 ::lemon::ignore_unused_variable_warning(map2,map3); 93 93 94 94 map1 = constMap<A>(B()); … … 97 97 ConstMap<A,C> map4(C(1)); 98 98 ConstMap<A,C> map5 = map4; 99 ignore_unused_variable_warning(map5);99 ::lemon::ignore_unused_variable_warning(map5); 100 100 101 101 map4 = constMap<A>(C(2)); … … 119 119 IdentityMap<A> map1; 120 120 IdentityMap<A> map2 = map1; 121 ignore_unused_variable_warning(map2);121 ::lemon::ignore_unused_variable_warning(map2); 122 122 123 123 map1 = identityMap<A>(); … … 180 180 checkConcept<ReadMap<B,double>, CompMap>(); 181 181 CompMap map1 = CompMap(DoubleMap(),ReadMap<B,A>()); 182 ignore_unused_variable_warning(map1);182 ::lemon::ignore_unused_variable_warning(map1); 183 183 CompMap map2 = composeMap(DoubleMap(), ReadMap<B,A>()); 184 ignore_unused_variable_warning(map2);184 ::lemon::ignore_unused_variable_warning(map2); 185 185 186 186 SparseMap<double, bool> m1(false); m1[3.14] = true; … … 195 195 checkConcept<ReadMap<A,double>, CombMap>(); 196 196 CombMap map1 = CombMap(DoubleMap(), DoubleMap()); 197 ignore_unused_variable_warning(map1);197 ::lemon::ignore_unused_variable_warning(map1); 198 198 CombMap map2 = combineMap(DoubleMap(), DoubleMap(), std::plus<double>()); 199 ignore_unused_variable_warning(map2);199 ::lemon::ignore_unused_variable_warning(map2); 200 200 201 201 check(combineMap(constMap<B,int,2>(), identityMap<B>(), &binc)[B()] == 3, … … 209 209 FunctorToMap<F> map1; 210 210 FunctorToMap<F> map2 = FunctorToMap<F>(F()); 211 ignore_unused_variable_warning(map2);211 ::lemon::ignore_unused_variable_warning(map2); 212 212 213 213 B b = functorToMap(F())[A()]; 214 ignore_unused_variable_warning(b);214 ::lemon::ignore_unused_variable_warning(b); 215 215 216 216 checkConcept<ReadMap<A,B>, MapToFunctor<ReadMap<A,B> > >(); 217 217 MapToFunctor<ReadMap<A,B> > map = 218 218 MapToFunctor<ReadMap<A,B> >(ReadMap<A,B>()); 219 ignore_unused_variable_warning(map);219 ::lemon::ignore_unused_variable_warning(map); 220 220 221 221 check(functorToMap(&func)[A()] == 3, … … 235 235 ConvertMap<ReadMap<double, int>, double> >(); 236 236 ConvertMap<RangeMap<bool>, int> map1(rangeMap(1, true)); 237 ignore_unused_variable_warning(map1);237 ::lemon::ignore_unused_variable_warning(map1); 238 238 ConvertMap<RangeMap<bool>, int> map2 = convertMap<int>(rangeMap(2, false)); 239 ignore_unused_variable_warning(map2);239 ::lemon::ignore_unused_variable_warning(map2); 240 240 241 241 } -
test/matching_test.cc
r1007 r1083 146 146 MaxMatching<Graph>::Status stat = 147 147 const_mat_test.status(n); 148 ignore_unused_variable_warning(stat);148 ::lemon::ignore_unused_variable_warning(stat); 149 149 const MaxMatching<Graph>::StatusMap& smap = 150 150 const_mat_test.statusMap(); -
test/min_cost_arborescence_test.cc
r1007 r1083 92 92 VType c; 93 93 bool b; 94 ignore_unused_variable_warning(c,b);94 ::lemon::ignore_unused_variable_warning(c,b); 95 95 int i; 96 96 CostMap cost; … … 128 128 c = const_mcarb_test.dualValue(i); 129 129 130 ignore_unused_variable_warning(am);131 ignore_unused_variable_warning(pm);130 ::lemon::ignore_unused_variable_warning(am); 131 ::lemon::ignore_unused_variable_warning(pm); 132 132 } 133 133 -
test/preflow_test.cc
r1007 r1083 87 87 VType v; 88 88 bool b; 89 ignore_unused_variable_warning(v,b);89 ::lemon::ignore_unused_variable_warning(v,b); 90 90 91 91 typedef Preflow<Digraph, CapMap> … … 116 116 const_preflow_test.minCutMap(cut); 117 117 118 ignore_unused_variable_warning(fm);118 ::lemon::ignore_unused_variable_warning(fm); 119 119 } 120 120 -
test/suurballe_test.cc
r1007 r1083 108 108 int f; 109 109 VType c; 110 ignore_unused_variable_warning(f,c);110 ::lemon::ignore_unused_variable_warning(f,c); 111 111 112 112 c = const_suurb_test.totalLength(); … … 120 120 Path<Digraph> p = const_suurb_test.path(k); 121 121 122 ignore_unused_variable_warning(fm);123 ignore_unused_variable_warning(pm);122 ::lemon::ignore_unused_variable_warning(fm); 123 ::lemon::ignore_unused_variable_warning(pm); 124 124 } 125 125 -
test/time_measure_test.cc
r997 r1083 36 36 { 37 37 TimeStamp x(T); 38 ignore_unused_variable_warning(x);38 ::lemon::ignore_unused_variable_warning(x); 39 39 } 40 40 }
Note: See TracChangeset
for help on using the changeset viewer.