[Lemon-commits] [lemon_svn] alpar: r2979 - hugo/trunk/test
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 21:51:36 CET 2006
Author: alpar
Date: Thu Oct 12 12:53:49 2006
New Revision: 2979
Modified:
hugo/trunk/test/graph_utils_test.cc
Log:
EdgeLookUp and AllEdgeLookUp tests added.
Modified: hugo/trunk/test/graph_utils_test.cc
==============================================================================
--- hugo/trunk/test/graph_utils_test.cc (original)
+++ hugo/trunk/test/graph_utils_test.cc Thu Oct 12 12:53:49 2006
@@ -86,6 +86,16 @@
check(++con == INVALID, "There is more connecting edge.");
}
}
+ AllEdgeLookUp<FullGraph> el(fg);
+ for (FullGraph::NodeIt src(fg); src != INVALID; ++src) {
+ for (FullGraph::NodeIt trg(fg); trg != INVALID; ++trg) {
+ FullGraph::Edge con = el(src, trg);
+ check(con != INVALID, "There is no connecting edge.");
+ check(fg.source(con) == src, "Wrong source.");
+ check(fg.target(con) == trg, "Wrong target.");
+ check(el(src,trg,con) == INVALID, "There is more connecting edge.");
+ }
+ }
}
//check In/OutDegMap (and Snapshot feature)
More information about the Lemon-commits
mailing list