diff -r c1e936e6a46b -r 27aa03cd3121 test/dijkstra_test.cc --- a/test/dijkstra_test.cc Fri Jan 05 10:59:18 2007 +0000 +++ b/test/dijkstra_test.cc Mon Jan 08 10:39:59 2007 +0000 @@ -63,8 +63,7 @@ // pn = dijkstra_test.predNodeMap(); b = dijkstra_test.reached(n); - Path pp(G); - dijkstra_test.getPath(pp,n); + Path pp = dijkstra_test.path(n); } void check_Dijkstra_Function_Compile() @@ -120,9 +119,11 @@ check(dijkstra_test.dist(t)==13,"Dijkstra found a wrong path."); - Path p(G); - check(dijkstra_test.getPath(p,t),"getPath() failed to set the path."); + Path p = dijkstra_test.path(t); check(p.length()==4,"getPath() found a wrong path."); + check(checkPath(G, p),"path() found a wrong path."); + check(pathSource(G, p) == s,"path() found a wrong path."); + check(pathTarget(G, p) == t,"path() found a wrong path."); for(EdgeIt e(G); e!=INVALID; ++e) {