Changeset 167:d57ae6f0a335 in lemon-main for test
- Timestamp:
- 06/14/08 19:34:15 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/maps_test.cc
r159 r167 306 306 } 307 307 308 // StoreBoolMap308 // LoggerBoolMap 309 309 { 310 310 typedef std::vector<int> vec; 311 311 vec v1; 312 312 vec v2(10); 313 StoreBoolMap<std::back_insert_iterator<vec> > map1(std::back_inserter(v1));314 StoreBoolMap<vec::iterator> map2(v2.begin());313 LoggerBoolMap<std::back_insert_iterator<vec> > map1(std::back_inserter(v1)); 314 LoggerBoolMap<vec::iterator> map2(v2.begin()); 315 315 map1.set(10, false); 316 316 map1.set(20, true); map2.set(20, true); … … 320 320 check(v1.size() == 3 && v2.size() == 10 && 321 321 v1[0]==20 && v1[1]==50 && v1[2]==60 && v2[0]==20 && v2[1]==50 && v2[2]==60, 322 "Something is wrong with StoreBoolMap");322 "Something is wrong with LoggerBoolMap"); 323 323 324 324 int i = 0; 325 for ( StoreBoolMap<vec::iterator>::Iterator it = map2.begin();325 for ( LoggerBoolMap<vec::iterator>::Iterator it = map2.begin(); 326 326 it != map2.end(); ++it ) 327 check(v1[i++] == *it, "Something is wrong with StoreBoolMap");327 check(v1[i++] == *it, "Something is wrong with LoggerBoolMap"); 328 328 } 329 329
Note: See TracChangeset
for help on using the changeset viewer.