Changeset 209:765619b7cbb2 in lemon1.2 for test/graph_maps_test.h
 Timestamp:
 07/13/08 20:51:02 (13 years ago)
 Branch:
 default
 Phase:
 public
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

test/graph_maps_test.h
r171 r209 1 /* * C++*1 /* * mode: C++; indenttabsmode: 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) 20032008 … … 72 72 for (int i = 0; i < num; ++i) { 73 73 for (int j = 0; j < i; ++j) { 74 74 arcs.push_back(graph.addArc(nodes[i], nodes[j])); 75 75 } 76 76 } … … 85 85 for (int i = 0; i < num; ++i) { 86 86 for (int j = i + 1; j < num; ++j) { 87 88 87 arcs.push_back(graph.addArc(nodes[i], nodes[j])); 88 map[arcs.back()] = 23; 89 89 check(map[arcs.back()] == 23, "Wrong operator[]."); 90 90 } … … 114 114 for (int i = 0; i < num; ++i) { 115 115 for (int j = 0; j < i; ++j) { 116 116 edges.push_back(graph.addEdge(nodes[i], nodes[j])); 117 117 } 118 118 } … … 127 127 for (int i = 0; i < num; ++i) { 128 128 for (int j = i + 1; j < num; ++j) { 129 130 129 edges.push_back(graph.addEdge(nodes[i], nodes[j])); 130 map[edges.back()] = 23; 131 131 check(map[edges.back()] == 23, "Wrong operator[]."); 132 132 }
Note: See TracChangeset
for help on using the changeset viewer.