diff -r d8475431bbbb -r 8e85e6bbefdf test/graph_adaptor_test.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/graph_adaptor_test.cc Mon May 23 04:48:14 2005 +0000 @@ -0,0 +1,75 @@ +/* -*- C++ -*- + * test/graph_adaptor_test.cc - Part of LEMON, a generic C++ optimization library + * + * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport + * (Egervary Research Group on Combinatorial Optimization, EGRES). + * + * Permission to use, modify and distribute this software is granted + * provided that this copyright notice appears in all copies. For + * precise terms see the accompanying LICENSE file. + * + * This software is provided "AS IS" with no warranty of any kind, + * express or implied, and with no claim as to its suitability for any + * purpose. + * + */ + +#include +#include + +#include +#include +#include + +#include +#include +#include + +#include"test/test_tools.h" +#include"test/graph_test.h" + +/** +\file +This test makes consistency checks of graph adaptors. + +\todo More extensive tests are needed +*/ + +using namespace lemon; +using namespace lemon::concept; + + + +int main() +{ + { + typedef StaticGraph Graph; + checkConcept >(); + + checkConcept >(); + + checkConcept , Graph::EdgeMap > >(); + checkConcept > >(); + checkConcept > >(); + + checkConcept, Graph::EdgeMap > >(); + // checkConcept >(); + checkConcept, Graph::EdgeMap > >(); + + checkConcept > >(); + + /// \bug why does not compile with StaticGraph + checkConcept >(); + checkConcept >(); + checkConcept >(); + } + std::cout << __FILE__ ": All tests passed.\n"; + + return 0; +}