1.1 --- a/src/test/dijkstra_test.cc Wed Mar 16 13:25:19 2005 +0000
1.2 +++ b/src/test/dijkstra_test.cc Wed Mar 16 16:40:21 2005 +0000
1.3 @@ -62,6 +62,27 @@
1.4
1.5 }
1.6
1.7 +void check_Dijkstra_Function_Compile()
1.8 +{
1.9 + typedef int VType;
1.10 + typedef concept::StaticGraph Graph;
1.11 +
1.12 + typedef Graph::Edge Edge;
1.13 + typedef Graph::Node Node;
1.14 + typedef Graph::EdgeIt EdgeIt;
1.15 + typedef Graph::NodeIt NodeIt;
1.16 + typedef concept::ReadMap<Edge,VType> LengthMap;
1.17 +
1.18 + dijkstra(Graph(),LengthMap(),Node()).run();
1.19 + dijkstra(Graph(),LengthMap()).source(Node()).run();
1.20 + dijkstra(Graph(),LengthMap())
1.21 + .predMap(concept::WriteMap<Node,Edge>())
1.22 + .distMap(concept::WriteMap<Node,VType>())
1.23 + .run(Node());
1.24 +
1.25 +}
1.26 +
1.27 +
1.28 int main()
1.29 {
1.30