Changeset 372:7b6466ed488a in lemon1.2 for test
 Timestamp:
 11/07/08 14:04:54 (14 years ago)
 Branch:
 default
 Phase:
 public
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

test/graph_test.cc
r365 r372 322 322 HypercubeGraph G(dim); 323 323 checkGraphNodeList(G, 1 << dim); 324 checkGraphEdgeList(G, dim * (1 << dim1));324 checkGraphEdgeList(G, dim * (1 << (dim1))); 325 325 checkGraphArcList(G, dim * (1 << dim)); 326 326 … … 331 331 for (IncEdgeIt e(G, n); e != INVALID; ++e) { 332 332 check( (G.u(e) == n && 333 G.id(G.v(e)) == G.id(n) ^ (1 << G.dimension(e))) 333 G.id(G.v(e)) == (G.id(n) ^ (1 << G.dimension(e))))  334 334 (G.v(e) == n && 335 G.id(G.u(e)) == G.id(n) ^ (1 << G.dimension(e))),335 G.id(G.u(e)) == (G.id(n) ^ (1 << G.dimension(e)))), 336 336 "Wrong edge or wrong dimension"); 337 337 } … … 340 340 for (OutArcIt a(G, n); a != INVALID; ++a) { 341 341 check(G.source(a) == n && 342 G.id(G.target(a)) == G.id(n) ^ (1 << G.dimension(a)),342 G.id(G.target(a)) == (G.id(n) ^ (1 << G.dimension(a))), 343 343 "Wrong arc or wrong dimension"); 344 344 } … … 347 347 for (InArcIt a(G, n); a != INVALID; ++a) { 348 348 check(G.target(a) == n && 349 G.id(G.source(a)) == G.id(n) ^ (1 << G.dimension(a)),349 G.id(G.source(a)) == (G.id(n) ^ (1 << G.dimension(a))), 350 350 "Wrong arc or wrong dimension"); 351 351 } … … 353 353 354 354 checkGraphConArcList(G, (1 << dim) * dim); 355 checkGraphConEdgeList(G, dim * (1 << dim1));355 checkGraphConEdgeList(G, dim * (1 << (dim1))); 356 356 357 357 checkArcDirections(G);
Note: See TracChangeset
for help on using the changeset viewer.