Changeset 1062 for trunk/test


Ignore:
Timestamp:
Feb 10, 2008, 7:41:06 PM (14 years ago)
Author:
Peter
Message:

redesigning Iterator class to hold a 2D container rather than 1D as before. refs #267

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/iterator_test.cc

    r1038 r1062  
    4949  bool ok = true;
    5050
     51  *message << "testing utility::vector::iterator" << std::endl;
    5152  utility::vector vec(12);
    5253  classifier::DataLookup1D lookup(vec);
     
    6061  utility::vector::iterator end=vec.end();
    6162  std::sort(begin, end);
     63
     64  *message << "testing classifier::DataLookup1D::const_iterator" << std::endl;
    6265  classifier::DataLookup1D::const_iterator lbegin=lookup.begin();
    6366  classifier::DataLookup1D::const_iterator lend=lookup.end();
    6467 
     68  *message << "copy from DataLookup1D to Vector" << std::endl;
    6569  std::copy(lbegin, lend, begin);
     70  *message << "copy from Vector to Vector" << std::endl;
    6671  std::copy(begin, end, begin);
     72  *message << "sort Vector" << std::endl;
    6773  std::sort(begin, end);
    6874
Note: See TracChangeset for help on using the changeset viewer.