diff -r c1e936e6a46b -r 27aa03cd3121 test/dfs_test.cc --- a/test/dfs_test.cc Fri Jan 05 10:59:18 2007 +0000 +++ b/test/dfs_test.cc Mon Jan 08 10:39:59 2007 +0000 @@ -59,8 +59,7 @@ // pn = dfs_test.predNodeMap(); b = dfs_test.reached(n); - Path pp(G); - dfs_test.getPath(pp,n); + Path pp = dfs_test.path(n); } @@ -108,9 +107,11 @@ Dfs dfs_test(G); dfs_test.run(s); - Path p(G); - check(dfs_test.getPath(p,t),"getPath() failed to set the path."); - check(p.length()==dfs_test.dist(t),"getPath() found a wrong path."); + Path p = dfs_test.path(t); + check(p.length()==dfs_test.dist(t),"path() 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(NodeIt v(G); v!=INVALID; ++v) { check(dfs_test.reached(v),"Each node should be reached.");