Changeset 611:85cb3aa71cce in lemon-main for test
- Timestamp:
- 04/21/09 16:18:54 (16 years ago)
- Branch:
- default
- Children:
- 612:0c8e5c688440, 613:b1811c363299, 619:ec817dfc2cb7
- Parents:
- 600:0ba8dfce7259 (diff), 610:dacc2cee2b4c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Phase:
- public
- Location:
- test
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
test/CMakeLists.txt
r594 r611 32 32 matching_test 33 33 min_cost_arborescence_test 34 min_cost_flow_test 34 35 path_test 35 36 preflow_test -
test/CMakeLists.txt
r601 r611 1 1 INCLUDE_DIRECTORIES( 2 ${ CMAKE_SOURCE_DIR}3 ${ CMAKE_BINARY_DIR}2 ${PROJECT_SOURCE_DIR} 3 ${PROJECT_BINARY_DIR} 4 4 ) 5 5 … … 8 8 ENDIF(HAVE_GLPK) 9 9 10 LINK_DIRECTORIES(${ CMAKE_BINARY_DIR}/lemon)10 LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lemon) 11 11 12 12 SET(TESTS … … 22 22 error_test 23 23 euler_test 24 gomory_hu_test 24 25 graph_copy_test 25 26 graph_test … … 29 30 kruskal_test 30 31 maps_test 31 ma x_matching_test32 matching_test 32 33 min_cost_arborescence_test 33 34 min_cost_flow_test -
test/Makefile.am
r594 r611 28 28 test/matching_test \ 29 29 test/min_cost_arborescence_test \ 30 test/min_cost_flow_test \ 30 31 test/path_test \ 31 32 test/preflow_test \ … … 73 74 test_matching_test_SOURCES = test/matching_test.cc 74 75 test_min_cost_arborescence_test_SOURCES = test/min_cost_arborescence_test.cc 76 test_min_cost_flow_test_SOURCES = test/min_cost_flow_test.cc 75 77 test_path_test_SOURCES = test/path_test.cc 76 78 test_preflow_test_SOURCES = test/preflow_test.cc -
test/Makefile.am
r601 r611 18 18 test/error_test \ 19 19 test/euler_test \ 20 test/gomory_hu_test \ 20 21 test/graph_copy_test \ 21 22 test/graph_test \ … … 25 26 test/kruskal_test \ 26 27 test/maps_test \ 27 test/ma x_matching_test \28 test/matching_test \ 28 29 test/min_cost_arborescence_test \ 29 30 test/min_cost_flow_test \ … … 37 38 test/time_measure_test \ 38 39 test/unionfind_test 40 41 test_test_tools_pass_DEPENDENCIES = demo 39 42 40 43 if HAVE_LP … … 59 62 test_error_test_SOURCES = test/error_test.cc 60 63 test_euler_test_SOURCES = test/euler_test.cc 64 test_gomory_hu_test_SOURCES = test/gomory_hu_test.cc 61 65 test_graph_copy_test_SOURCES = test/graph_copy_test.cc 62 66 test_graph_test_SOURCES = test/graph_test.cc … … 68 72 test_maps_test_SOURCES = test/maps_test.cc 69 73 test_mip_test_SOURCES = test/mip_test.cc 70 test_ma x_matching_test_SOURCES = test/max_matching_test.cc74 test_matching_test_SOURCES = test/matching_test.cc 71 75 test_min_cost_arborescence_test_SOURCES = test/min_cost_arborescence_test.cc 72 76 test_min_cost_flow_test_SOURCES = test/min_cost_flow_test.cc -
test/circulation_test.cc
r585 r611 58 58 typedef Digraph::Arc Arc; 59 59 typedef concepts::ReadMap<Arc,VType> CapMap; 60 typedef concepts::ReadMap<Node,VType> DeltaMap;60 typedef concepts::ReadMap<Node,VType> SupplyMap; 61 61 typedef concepts::ReadWriteMap<Arc,VType> FlowMap; 62 62 typedef concepts::WriteMap<Node,bool> BarrierMap; … … 69 69 Arc a; 70 70 CapMap lcap, ucap; 71 DeltaMap delta;71 SupplyMap supply; 72 72 FlowMap flow; 73 73 BarrierMap bar; … … 75 75 bool b; 76 76 77 typedef Circulation<Digraph, CapMap, CapMap, DeltaMap>77 typedef Circulation<Digraph, CapMap, CapMap, SupplyMap> 78 78 ::SetFlowMap<FlowMap> 79 79 ::SetElevator<Elev> 80 80 ::SetStandardElevator<LinkedElev> 81 81 ::Create CirculationType; 82 CirculationType circ_test(g, lcap, ucap, delta);82 CirculationType circ_test(g, lcap, ucap, supply); 83 83 const CirculationType& const_circ_test = circ_test; 84 84 85 85 circ_test 86 .lower CapMap(lcap)87 .upper CapMap(ucap)88 . deltaMap(delta)86 .lowerMap(lcap) 87 .upperMap(ucap) 88 .supplyMap(supply) 89 89 .flowMap(flow); 90 90 -
test/circulation_test.cc
r610 r611 72 72 FlowMap flow; 73 73 BarrierMap bar; 74 VType v; 75 bool b; 74 76 75 Circulation<Digraph, CapMap, CapMap, SupplyMap> 76 ::SetFlowMap<FlowMap> 77 ::SetElevator<Elev> 78 ::SetStandardElevator<LinkedElev> 79 ::Create circ_test(g,lcap,ucap,supply); 80 81 circ_test.lowerMap(lcap); 82 circ_test.upperMap(ucap); 83 circ_test.supplyMap(supply); 84 flow = circ_test.flowMap(); 85 circ_test.flowMap(flow); 77 typedef Circulation<Digraph, CapMap, CapMap, SupplyMap> 78 ::SetFlowMap<FlowMap> 79 ::SetElevator<Elev> 80 ::SetStandardElevator<LinkedElev> 81 ::Create CirculationType; 82 CirculationType circ_test(g, lcap, ucap, supply); 83 const CirculationType& const_circ_test = circ_test; 84 85 circ_test 86 .lowerMap(lcap) 87 .upperMap(ucap) 88 .supplyMap(supply) 89 .flowMap(flow); 86 90 87 91 circ_test.init(); … … 90 94 circ_test.run(); 91 95 92 circ_test.barrier(n); 93 circ_test.barrierMap(bar); 94 circ_test.flow(a); 96 v = const_circ_test.flow(a); 97 const FlowMap& fm = const_circ_test.flowMap(); 98 b = const_circ_test.barrier(n); 99 const_circ_test.barrierMap(bar); 100 101 ignore_unused_variable_warning(fm); 95 102 } 96 103
Note: See TracChangeset
for help on using the changeset viewer.