Changeset 1568:f694f75de683 in lemon-0.x for test/graph_utils_test.cc
- Timestamp:
- 07/18/05 17:10:22 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2067
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/graph_utils_test.cc
r1459 r1568 51 51 { // checking list graph 52 52 checkGraphCounters<ListGraph>(); 53 checkFindEdge<ListGraph>(); 53 54 } 54 55 { // checking smart graph 55 56 checkGraphCounters<SmartGraph>(); 57 checkFindEdge<SmartGraph>(); 56 58 } 57 59 { … … 59 61 FullGraph fg(num); 60 62 check(countNodes(fg) == num, "FullGraph: wrong node number."); 61 check(countEdges(fg) == num*num, "FullGraph: wrong edge number."); 63 check(countEdges(fg) == num*num, "FullGraph: wrong edge number."); 64 for (FullGraph::NodeIt src(fg); src != INVALID; ++src) { 65 for (FullGraph::NodeIt trg(fg); trg != INVALID; ++trg) { 66 ConEdgeIt<FullGraph> con(fg, src, trg); 67 check(con != INVALID, "There is no connecting edge."); 68 check(fg.source(con) == src, "Wrong source."); 69 check(fg.target(con) == trg, "Wrong target."); 70 check(++con == INVALID, "There is more connecting edge."); 71 } 72 } 62 73 } 63 74
Note: See TracChangeset
for help on using the changeset viewer.