Changeset 737:9d6c3e8b2421 in lemon-main for test
- Timestamp:
- 08/23/09 11:11:49 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/digraph_test.cc
r736 r737 379 379 typedef FullDigraph Digraph; 380 380 DIGRAPH_TYPEDEFS(Digraph); 381 381 382 Digraph G(num); 383 check(G.nodeNum() == num && G.arcNum() == num * num, "Wrong size"); 384 385 G.resize(num); 386 check(G.nodeNum() == num && G.arcNum() == num * num, "Wrong size"); 382 387 383 388 checkGraphNodeList(G, num); -
test/graph_test.cc
r736 r737 271 271 272 272 Graph G(num); 273 check(G.nodeNum() == num && G.edgeNum() == num * (num - 1) / 2, 274 "Wrong size"); 275 276 G.resize(num); 277 check(G.nodeNum() == num && G.edgeNum() == num * (num - 1) / 2, 278 "Wrong size"); 279 273 280 checkGraphNodeList(G, num); 274 281 checkGraphEdgeList(G, num * (num - 1) / 2); … … 415 422 check(G.height() == height, "Wrong row number"); 416 423 424 G.resize(width, height); 425 check(G.width() == width, "Wrong column number"); 426 check(G.height() == height, "Wrong row number"); 427 417 428 for (int i = 0; i < width; ++i) { 418 429 for (int j = 0; j < height; ++j) { … … 490 501 491 502 HypercubeGraph G(dim); 503 check(G.dimension() == dim, "Wrong dimension"); 504 505 G.resize(dim); 506 check(G.dimension() == dim, "Wrong dimension"); 507 492 508 checkGraphNodeList(G, 1 << dim); 493 509 checkGraphEdgeList(G, dim * (1 << (dim-1)));
Note: See TracChangeset
for help on using the changeset viewer.