Changeset 209:765619b7cbb2 in lemon for test/graph_copy_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_copy_test.cc
r200 r209 1 /* -*- C++-*-1 /* -*- mode: C++; indent-tabs-mode: nil; -*- 2 2 * 3 * This file is a part of LEMON, a generic C++ optimization library 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 5 * Copyright (C) 2003-2008 … … 123 123 } 124 124 } 125 125 126 126 ListGraph to; 127 127 ListGraph::NodeMap<int> tnm(to); … … 161 161 check(ecr[er[it]] == it, "Wrong copy."); 162 162 check(fem[it] == tem[er[it]], "Wrong copy."); 163 check(nr[from.u(it)] == to.u(er[it]) || nr[from.u(it)] == to.v(er[it]), 164 165 check(nr[from.v(it)] == to.u(er[it]) || nr[from.v(it)] == to.v(er[it]), 166 167 check((from.u(it) != from.v(it)) == (to.u(er[it]) != to.v(er[it])), 168 163 check(nr[from.u(it)] == to.u(er[it]) || nr[from.u(it)] == to.v(er[it]), 164 "Wrong copy."); 165 check(nr[from.v(it)] == to.u(er[it]) || nr[from.v(it)] == to.v(er[it]), 166 "Wrong copy."); 167 check((from.u(it) != from.v(it)) == (to.u(er[it]) != to.v(er[it])), 168 "Wrong copy."); 169 169 } 170 170 … … 189 189 graph_copy_test(); 190 190 191 return 0; 191 return 0; 192 192 }
Note: See TracChangeset
for help on using the changeset viewer.