COIN-OR::LEMON - Graph Library

Changeset 167:d57ae6f0a335 in lemon-main for test


Ignore:
Timestamp:
06/14/08 19:34:15 (16 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Rename StoreBoolMap? to LoggerBoolMap? (ticket #34).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/maps_test.cc

    r159 r167  
    306306  }
    307307 
    308   // StoreBoolMap
     308  // LoggerBoolMap
    309309  {
    310310    typedef std::vector<int> vec;
    311311    vec v1;
    312312    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());
    315315    map1.set(10, false);
    316316    map1.set(20, true);   map2.set(20, true);
     
    320320    check(v1.size() == 3 && v2.size() == 10 &&
    321321          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");
    323323         
    324324    int i = 0;
    325     for ( StoreBoolMap<vec::iterator>::Iterator it = map2.begin();
     325    for ( LoggerBoolMap<vec::iterator>::Iterator it = map2.begin();
    326326          it != map2.end(); ++it )
    327       check(v1[i++] == *it, "Something is wrong with StoreBoolMap");
     327      check(v1[i++] == *it, "Something is wrong with LoggerBoolMap");
    328328  }
    329329
Note: See TracChangeset for help on using the changeset viewer.