1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/bpgraph_test.cc Sun Nov 14 16:35:31 2010 +0100
1.3 @@ -0,0 +1,70 @@
1.4 +/* -*- mode: C++; indent-tabs-mode: nil; -*-
1.5 + *
1.6 + * This file is a part of LEMON, a generic C++ optimization library.
1.7 + *
1.8 + * Copyright (C) 2003-2010
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 <lemon/concepts/bpgraph.h>
1.23 +//#include <lemon/list_graph.h>
1.24 +//#include <lemon/smart_graph.h>
1.25 +//#include <lemon/full_graph.h>
1.26 +//#include <lemon/grid_graph.h>
1.27 +//#include <lemon/hypercube_graph.h>
1.28 +
1.29 +#include "test_tools.h"
1.30 +#include "graph_test.h"
1.31 +
1.32 +using namespace lemon;
1.33 +using namespace lemon::concepts;
1.34 +
1.35 +void checkConcepts() {
1.36 + { // Checking graph components
1.37 + checkConcept<BaseBpGraphComponent, BaseBpGraphComponent >();
1.38 +
1.39 + checkConcept<IDableBpGraphComponent<>,
1.40 + IDableBpGraphComponent<> >();
1.41 +
1.42 + checkConcept<IterableBpGraphComponent<>,
1.43 + IterableBpGraphComponent<> >();
1.44 +
1.45 + checkConcept<AlterableBpGraphComponent<>,
1.46 + AlterableBpGraphComponent<> >();
1.47 +
1.48 + checkConcept<MappableBpGraphComponent<>,
1.49 + MappableBpGraphComponent<> >();
1.50 +
1.51 + checkConcept<ExtendableBpGraphComponent<>,
1.52 + ExtendableBpGraphComponent<> >();
1.53 +
1.54 + checkConcept<ErasableBpGraphComponent<>,
1.55 + ErasableBpGraphComponent<> >();
1.56 +
1.57 + checkConcept<ClearableGraphComponent<>,
1.58 + ClearableGraphComponent<> >();
1.59 +
1.60 + }
1.61 + { // Checking skeleton graph
1.62 + checkConcept<BpGraph, BpGraph>();
1.63 + }
1.64 +}
1.65 +
1.66 +void checkGraphs() {
1.67 +}
1.68 +
1.69 +int main() {
1.70 + checkConcepts();
1.71 + checkGraphs();
1.72 + return 0;
1.73 +}