diff -r d8475431bbbb -r 8e85e6bbefdf test/graph_utils_test.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/graph_utils_test.cc Mon May 23 04:48:14 2005 +0000 @@ -0,0 +1,37 @@ +// -*- c++ -*- + +#include +#include + +#include + +#include +#include +#include + +#include "test_tools.h" +#include "graph_utils_test.h" + + +using namespace lemon; + + +int main() { + ///\file + { // checking list graph + checkGraphCounters(); + } + { // checking smart graph + checkGraphCounters(); + } + { + int num = 5; + FullGraph fg(num); + check(countNodes(fg) == num, "FullGraph: wrong node number."); + check(countEdges(fg) == num*num, "FullGraph: wrong edge number."); + } + + std::cout << __FILE__ ": All tests passed.\n"; + + return 0; +}