COIN-OR::LEMON - Graph Library

Changeset 171:02f4d5d9bfd7 in lemon for test/heap_test.cc


Ignore:
Timestamp:
06/15/08 22:05:23 (16 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
172:c94a80f38d7f, 173:b026e9779b28, 175:4eb8900a865c
Phase:
public
Message:

Improve and redesign test programs + unify their output (ticket #25)

  • Move graph related utilities form test_tools.h to graph_test.h.
  • Move the contents of graph_utils_test.h to graph_utils_test.cc.
  • Rename map_test.h -> graph_maps_test.h.
  • Rename digraph_test.h -> graph_test.h.
  • Many improvements in the following files:
    • digraph_test.cc
    • graph_test.cc
    • graph_test.h
    • graph_maps_test.h
    • graph_utils_test.cc
    • bfs_test.cc
    • dfs_test.cc
    • counter_test.cc
  • Test programs print messages only if it really seems necessary.
  • Remove \file commands form .cc test files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/heap_test.cc

    r100 r171  
    4343using namespace lemon::concepts;
    4444
    45 
    4645int main() {
    4746
     
    7877 
    7978  {
    80     std::cerr << "Checking Bin Heap" << std::endl;
     79    std::cout << "Checking Bin Heap" << std::endl;
    8180
    8281    typedef BinHeap<Prio, ItemIntMap> IntHeap;
     
    9291  }
    9392  {
    94     std::cerr << "Checking Fib Heap" << std::endl;
     93    std::cout << "Checking Fib Heap" << std::endl;
    9594
    9695    typedef FibHeap<Prio, ItemIntMap> IntHeap;
     
    106105  }
    107106  {
    108     std::cerr << "Checking Radix Heap" << std::endl;
     107    std::cout << "Checking Radix Heap" << std::endl;
    109108
    110109    typedef RadixHeap<ItemIntMap> IntHeap;
     
    121120
    122121  {
    123     std::cerr << "Checking Bucket Heap" << std::endl;
     122    std::cout << "Checking Bucket Heap" << std::endl;
    124123
    125124    typedef BucketHeap<ItemIntMap> IntHeap;
     
    135134  }
    136135
    137   std::cout << __FILE__ ": All tests passed.\n";
    138 
    139136  return 0;
    140137}
Note: See TracChangeset for help on using the changeset viewer.