diff -r 81e89e2b90d1 -r fc20371677b9 src/test/bfs_test.cc --- a/src/test/bfs_test.cc Thu Mar 31 13:30:27 2005 +0000 +++ b/src/test/bfs_test.cc Thu Mar 31 13:31:39 2005 +0000 @@ -17,6 +17,7 @@ #include "test_tools.h" #include #include +#include #include using namespace lemon; @@ -56,6 +57,8 @@ // pn = bfs_test.predNodeMap(); b = bfs_test.reached(n); + DirPath pp(G); + bfs_test.getPath(pp,n); } void check_Bfs_Function_Compile() @@ -103,6 +106,10 @@ check(bfs_test.dist(t)==3,"Bfs found a wrong path. " << bfs_test.dist(t)); + DirPath p(G); + check(bfs_test.getPath(p,t),"getPath() failed to set the path."); + check(p.length()==3,"getPath() found a wrong path."); + for(EdgeIt e(G); e==INVALID; ++e) { Node u=G.source(e);