Changeset 1880


Ignore:
Timestamp:
Mar 28, 2009, 6:44:39 PM (12 years ago)
Author:
Peter
Message:

exending test on getline_iterator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/getline_iterator_test.cc

    r1878 r1880  
    3232using namespace theplu::yat;
    3333void test_default(test::Suite& suite);
     34void test_input_iterator(test::Suite& suite);
    3435
    3536int main( int argc, char* argv[])
     
    3839  suite.err() << "testing ReadlineIterator" << std::endl;
    3940  test_default(suite);
     41  test_input_iterator(suite);
    4042
    4143  return suite.return_value();
     
    6264}
    6365
    64 
     66void test_input_iterator(test::Suite& suite)
     67{
     68  std::istringstream is("Hello World!\nThis is a test.");
     69  utility::GetlineIterator ri(is, '\n');
     70  suite.test_input_iterator(ri);
     71}
Note: See TracChangeset for help on using the changeset viewer.