[Lemon-commits] [lemon_svn] alpar: r1080 - hugo/trunk/src/test

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:43:08 CET 2006


Author: alpar
Date: Thu Sep  2 17:30:50 2004
New Revision: 1080

Modified:
   hugo/trunk/src/test/graph_test.cc

Log:
Tests for the existence of 'KeyType' and 'ValueType' in the graph maps.

Modified: hugo/trunk/src/test/graph_test.cc
==============================================================================
--- hugo/trunk/src/test/graph_test.cc	(original)
+++ hugo/trunk/src/test/graph_test.cc	Thu Sep  2 17:30:50 2004
@@ -132,6 +132,13 @@
     
     m=cm;  
     dm=cm; //Copy from another type
+    {
+      //Check the typedef's
+      typename Graph::template NodeMap<int>::ValueType val;
+      val=1;
+      typename Graph::template NodeMap<int>::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<bool>::ValueType val;
+      val=true;
+      typename Graph::template NodeMap<bool>::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<int>::ValueType val;
+      val=1;
+      typename Graph::template EdgeMap<int>::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<bool>::ValueType val;
+      val=true;
+      typename Graph::template EdgeMap<bool>::KeyType key;
+      key= typename Graph::EdgeIt(G);
+    }
   }
 }
 



More information about the Lemon-commits mailing list