Changeset 1979:c2992fd74dad in lemon-0.x for test/ugraph_test.cc
- Timestamp:
- 02/22/06 19:26:56 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2569
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/ugraph_test.cc
r1956 r1979 22 22 #include <lemon/smart_graph.h> 23 23 #include <lemon/full_graph.h> 24 #include <lemon/grid_ graph.h>24 #include <lemon/grid_ugraph.h> 25 25 26 26 #include <lemon/graph_utils.h> … … 33 33 34 34 void check_concepts() { 35 typedef UGraphExtender<ListGraphBase> ListUGraphBase;36 37 typedef IterableUGraphExtender<38 AlterableUGraphExtender<ListUGraphBase> > IterableListUGraph;39 40 typedef MappableUGraphExtender<IterableListUGraph>41 MappableListUGraph;42 43 typedef ErasableUGraphExtender<44 ClearableUGraphExtender<45 ExtendableUGraphExtender<MappableListUGraph> > > Graph;46 47 checkConcept<BaseIterableUGraphConcept, Graph>();48 checkConcept<IterableUGraphConcept, Graph>();49 checkConcept<MappableUGraphConcept, Graph>();50 51 checkConcept<UGraph, Graph>();52 checkConcept<ErasableUGraph, Graph>();53 54 35 checkConcept<UGraph, ListUGraph>(); 55 36 checkConcept<ErasableUGraph, ListUGraph>(); … … 62 43 checkConcept<UGraph, UGraph>(); 63 44 64 checkConcept<UGraph, Grid Graph>();45 checkConcept<UGraph, GridUGraph>(); 65 46 } 66 47 … … 151 132 } 152 133 153 void checkGrid Graph(const GridGraph& g, int w, int h) {134 void checkGridUGraph(const GridUGraph& g, int w, int h) { 154 135 check(g.width() == w, "Wrong width"); 155 136 check(g.height() == h, "Wrong height"); … … 207 188 208 189 { 209 Grid Graph g(5, 6);190 GridUGraph g(5, 6); 210 191 check_item_counts(g, 30, 49); 211 checkGrid Graph(g, 5, 6);192 checkGridUGraph(g, 5, 6); 212 193 } 213 194
Note: See TracChangeset
for help on using the changeset viewer.