1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/path_test.cc Thu Mar 20 12:12:24 2008 +0000
1.3 @@ -0,0 +1,44 @@
1.4 +/* -*- C++ -*-
1.5 + *
1.6 + * This file is a part of LEMON, a generic C++ optimization library
1.7 + *
1.8 + * Copyright (C) 2003-2008
1.9 + * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
1.10 + * (Egervary Research Group on Combinatorial Optimization, EGRES).
1.11 + *
1.12 + * Permission to use, modify and distribute this software is granted
1.13 + * provided that this copyright notice appears in all copies. For
1.14 + * precise terms see the accompanying LICENSE file.
1.15 + *
1.16 + * This software is provided "AS IS" with no warranty of any kind,
1.17 + * express or implied, and with no claim as to its suitability for any
1.18 + * purpose.
1.19 + *
1.20 + */
1.21 +
1.22 +#include <string>
1.23 +#include <iostream>
1.24 +
1.25 +#include <lemon/concepts/path.h>
1.26 +#include <lemon/concepts/digraph.h>
1.27 +
1.28 +#include <lemon/path.h>
1.29 +#include <lemon/list_graph.h>
1.30 +
1.31 +#include "test_tools.h"
1.32 +
1.33 +using namespace std;
1.34 +using namespace lemon;
1.35 +
1.36 +void check_concepts() {
1.37 + checkConcept<concepts::Path<ListDigraph>, concepts::Path<ListDigraph> >();
1.38 + checkConcept<concepts::Path<ListDigraph>, Path<ListDigraph> >();
1.39 + checkConcept<concepts::Path<ListDigraph>, SimplePath<ListDigraph> >();
1.40 + checkConcept<concepts::Path<ListDigraph>, StaticPath<ListDigraph> >();
1.41 + checkConcept<concepts::Path<ListDigraph>, ListPath<ListDigraph> >();
1.42 +}
1.43 +
1.44 +int main() {
1.45 + check_concepts();
1.46 + return 0;
1.47 +}