Changes in test/graph_test.cc [440:88ed40ad0d4f:740:819ca5b50de0] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/graph_test.cc
r440 r740 39 39 checkGraphArcList(G, 0); 40 40 41 G.reserveNode(3); 42 G.reserveEdge(3); 43 41 44 Node 42 45 n1 = G.addNode(), … … 257 260 258 261 snapshot.restore(); 262 snapshot.save(G); 263 264 checkGraphNodeList(G, 4); 265 checkGraphEdgeList(G, 3); 266 checkGraphArcList(G, 6); 267 268 G.addEdge(G.addNode(), G.addNode()); 269 270 snapshot.restore(); 259 271 260 272 checkGraphNodeList(G, 4); … … 268 280 269 281 Graph G(num); 282 check(G.nodeNum() == num && G.edgeNum() == num * (num - 1) / 2, 283 "Wrong size"); 284 285 G.resize(num); 286 check(G.nodeNum() == num && G.edgeNum() == num * (num - 1) / 2, 287 "Wrong size"); 288 270 289 checkGraphNodeList(G, num); 271 290 checkGraphEdgeList(G, num * (num - 1) / 2); … … 412 431 check(G.height() == height, "Wrong row number"); 413 432 433 G.resize(width, height); 434 check(G.width() == width, "Wrong column number"); 435 check(G.height() == height, "Wrong row number"); 436 414 437 for (int i = 0; i < width; ++i) { 415 438 for (int j = 0; j < height; ++j) { … … 487 510 488 511 HypercubeGraph G(dim); 512 check(G.dimension() == dim, "Wrong dimension"); 513 514 G.resize(dim); 515 check(G.dimension() == dim, "Wrong dimension"); 516 489 517 checkGraphNodeList(G, 1 << dim); 490 518 checkGraphEdgeList(G, dim * (1 << (dim-1)));
Note: See TracChangeset
for help on using the changeset viewer.