# HG changeset patch # User alpar # Date 1094139050 0 # Node ID 584270fba752e5af547bc4cb6e782634772d2082 # Parent d7b3b13b9df6f0796b9b6066bd301991c2536b42 Tests for the existence of 'KeyType' and 'ValueType' in the graph maps. diff -r d7b3b13b9df6 -r 584270fba752 src/test/graph_test.cc --- a/src/test/graph_test.cc Thu Sep 02 15:21:13 2004 +0000 +++ b/src/test/graph_test.cc Thu Sep 02 15:30:50 2004 +0000 @@ -132,6 +132,13 @@ m=cm; dm=cm; //Copy from another type + { + //Check the typedef's + typename Graph::template NodeMap::ValueType val; + val=1; + typename Graph::template NodeMap::KeyType key; + key = typename Graph::NodeIt(G); + } } { //bool NodeMap Node k; @@ -148,6 +155,14 @@ m=cm; dm=cm; //Copy from another type m=dm; //Copy to another type + + { + //Check the typedef's + typename Graph::template NodeMap::ValueType val; + val=true; + typename Graph::template NodeMap::KeyType key; + key= typename Graph::NodeIt(G); + } } //EdgeMap tests { @@ -164,6 +179,13 @@ m=cm; dm=cm; //Copy from another type + { + //Check the typedef's + typename Graph::template EdgeMap::ValueType val; + val=1; + typename Graph::template EdgeMap::KeyType key; + key= typename Graph::EdgeIt(G); + } } { //bool EdgeMap Edge k; @@ -180,6 +202,13 @@ m=cm; dm=cm; //Copy from another type m=dm; //Copy to another type + { + //Check the typedef's + typename Graph::template EdgeMap::ValueType val; + val=true; + typename Graph::template EdgeMap::KeyType key; + key= typename Graph::EdgeIt(G); + } } }