Changeset 1206:9c398137c2cb in lemon-0.x for src/test/heap_test.cc
- Timestamp:
- 03/09/05 15:10:21 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1625
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/test/heap_test.cc
r1187 r1206 7 7 #include <lemon/concept_check.h> 8 8 9 #include <lemon/smart_graph.h> 10 11 #include <lemon/graph_reader.h> 12 9 13 #include <lemon/bin_heap.h> 10 14 #include <lemon/fib_heap.h> 11 15 #include <lemon/radix_heap.h> 12 16 13 #include <lemon/dimacs.h>17 #include "test_tools.h" 14 18 15 #include "test_tools.h"16 19 #include "heap_test.h" 17 #include "map_test.h"18 20 19 21 … … 32 34 Prio prio; 33 35 36 ignore_unused_variable_warning(item); 37 ignore_unused_variable_warning(prio); 38 34 39 typedef typename _Heap::state_enum state_enum; 35 40 state_enum state; 41 42 ignore_unused_variable_warning(state); 36 43 37 44 _Heap heap1 = _Heap(map); 45 46 ignore_unused_variable_warning(heap1); 38 47 39 48 heap.push(item, prio); … … 81 90 Node start; 82 91 83 std::ifstream input("preflow_graph.dim"); 84 readDimacs(input, graph, length, start); 92 /// \todo create own test graph 93 std::ifstream input("dijkstra_test.lemon"); 94 readGraph(input, graph, length, start); 85 95 86 96 { … … 89 99 typedef BinHeap<Item, Prio, ItemIntMap> IntHeap; 90 100 checkConcept<HeapConcept<Item, Prio, ItemIntMap>, IntHeap>(); 91 heapSortTest<IntHeap>(20); 101 heapSortTest<IntHeap>(100); 102 heapIncreaseTest<IntHeap>(100); 92 103 93 104 typedef FibHeap<Node, Prio, Graph::NodeMap<int> > NodeHeap; … … 100 111 typedef FibHeap<Item, Prio, ItemIntMap> IntHeap; 101 112 checkConcept<HeapConcept<Item, Prio, ItemIntMap>, IntHeap>(); 102 heapSortTest<IntHeap>(20); 113 heapSortTest<IntHeap>(100); 114 heapIncreaseTest<IntHeap>(100); 103 115 104 116 typedef FibHeap<Node, Prio, Graph::NodeMap<int> > NodeHeap; … … 111 123 typedef RadixHeap<Item, ItemIntMap> IntHeap; 112 124 checkConcept<HeapConcept<Item, Prio, ItemIntMap>, IntHeap>(); 113 heapSortTest<IntHeap>(20); 125 heapSortTest<IntHeap>(100); 126 heapIncreaseTest<IntHeap>(100); 114 127 115 128 typedef RadixHeap<Node, Graph::NodeMap<int> > NodeHeap;
Note: See TracChangeset
for help on using the changeset viewer.