COIN-OR::LEMON - Graph Library

Changeset 763:93cd93e82f9b in lemon-main


Ignore:
Timestamp:
08/07/09 14:52:40 (15 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Add a detailed test file for MinMeanCycle? and fix test_tools.h (#179)

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • lemon/min_mean_cycle.h

    r762 r763  
    2626
    2727#include <vector>
     28#include <limits>
    2829#include <lemon/core.h>
    2930#include <lemon/path.h>
  • test/CMakeLists.txt

    r679 r763  
    3232  min_cost_arborescence_test
    3333  min_cost_flow_test
     34  min_mean_cycle_test
    3435  path_test
    3536  preflow_test
  • test/Makefile.am

    r649 r763  
    3030        test/min_cost_arborescence_test \
    3131        test/min_cost_flow_test \
     32        test/min_mean_cycle_test \
    3233        test/path_test \
    3334        test/preflow_test \
     
    7778test_min_cost_arborescence_test_SOURCES = test/min_cost_arborescence_test.cc
    7879test_min_cost_flow_test_SOURCES = test/min_cost_flow_test.cc
     80test_min_mean_cycle_test_SOURCES = test/min_mean_cycle_test.cc
    7981test_path_test_SOURCES = test/path_test.cc
    8082test_preflow_test_SOURCES = test/preflow_test.cc
  • test/test_tools.h

    r440 r763  
    3838///print something like this (and then exits).
    3939///\verbatim file_name.cc:123: error: This is obviously false. \endverbatim
    40 #define check(rc, msg) \
    41   if(!(rc)) { \
    42     std::cerr << __FILE__ ":" << __LINE__ << ": error: " << msg << std::endl; \
    43     abort(); \
    44   } else { } \
     40#define check(rc, msg)                                                  \
     41  {                                                                     \
     42    if(!(rc)) {                                                         \
     43      std::cerr << __FILE__ ":" << __LINE__ << ": error: "              \
     44                << msg << std::endl;                                    \
     45      abort();                                                          \
     46    } else { }                                                          \
     47  }                                                                     \
     48   
    4549
    4650#endif
Note: See TracChangeset for help on using the changeset viewer.