Changeset 209:765619b7cbb2 in lemon for test/graph_test.cc
- Timestamp:
- 07/13/08 20:51:02 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/graph_test.cc
r171 r209 1 /* -*- C++-*-2 * 3 * This file is a part of LEMON, a generic C++ optimization library 1 /* -*- mode: C++; indent-tabs-mode: nil; -*- 2 * 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 5 * Copyright (C) 2003-2008 … … 34 34 checkConcept<BaseGraphComponent, BaseGraphComponent >(); 35 35 36 checkConcept<IDableGraphComponent<>, 36 checkConcept<IDableGraphComponent<>, 37 37 IDableGraphComponent<> >(); 38 38 39 checkConcept<IterableGraphComponent<>, 39 checkConcept<IterableGraphComponent<>, 40 40 IterableGraphComponent<> >(); 41 41 42 checkConcept<MappableGraphComponent<>, 42 checkConcept<MappableGraphComponent<>, 43 43 MappableGraphComponent<> >(); 44 44 } … … 135 135 // } 136 136 // } 137 137 138 138 // for (int i = 0; i < w; ++i) { 139 139 // for (int j = 0; j < h - 1; ++j) { … … 155 155 // for (int i = 0; i < w - 1; ++i) { 156 156 // check(g.source(g.right(g(i, j))) == g(i, j), "Wrong right"); 157 // check(g.target(g.right(g(i, j))) == g(i + 1, j), "Wrong right"); 158 // } 159 // check(g.right(g(w - 1, j)) == INVALID, "Wrong right"); 157 // check(g.target(g.right(g(i, j))) == g(i + 1, j), "Wrong right"); 158 // } 159 // check(g.right(g(w - 1, j)) == INVALID, "Wrong right"); 160 160 // } 161 161 … … 163 163 // for (int i = 1; i < w; ++i) { 164 164 // check(g.source(g.left(g(i, j))) == g(i, j), "Wrong left"); 165 // check(g.target(g.left(g(i, j))) == g(i - 1, j), "Wrong left"); 166 // } 167 // check(g.left(g(0, j)) == INVALID, "Wrong left"); 165 // check(g.target(g.left(g(i, j))) == g(i - 1, j), "Wrong left"); 166 // } 167 // check(g.left(g(0, j)) == INVALID, "Wrong left"); 168 168 // } 169 169 // }
Note: See TracChangeset
for help on using the changeset viewer.