COIN-OR::LEMON - Graph Library

Changeset 1568:f694f75de683 in lemon-0.x for test/graph_utils_test.cc


Ignore:
Timestamp:
07/18/05 17:10:22 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2067
Message:

Improving tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/graph_utils_test.cc

    r1459 r1568  
    5151  { // checking list graph
    5252    checkGraphCounters<ListGraph>();
     53    checkFindEdge<ListGraph>();
    5354  }
    5455  { // checking smart graph
    5556    checkGraphCounters<SmartGraph>();
     57    checkFindEdge<SmartGraph>();
    5658  }
    5759  {
     
    5961    FullGraph fg(num);
    6062    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    }
    6273  }
    6374
Note: See TracChangeset for help on using the changeset viewer.