diff --git a/alib2std/test-src/extensions/AlgorithmTest.cpp b/alib2std/test-src/extensions/AlgorithmTest.cpp index d4d95db7de915377870b58742d3e428ccd2eb8d3..69492d48c4e2263140ddf7b4991421f5c4057d64 100644 --- a/alib2std/test-src/extensions/AlgorithmTest.cpp +++ b/alib2std/test-src/extensions/AlgorithmTest.cpp @@ -126,4 +126,16 @@ void AlgorithmTest::testFindRange ( ) { CPPUNIT_ASSERT ( str == "" ); } + + { + std::string str = "<dee<fd<<>>>th"; + + std::pair < std::string::iterator, std::string::iterator > range = ext::find_range ( str.begin ( ), str.end ( ), '<', '>' ); + + std::cerr << range.first - str.begin ( ) << std::endl; + std::cerr << range.second - str.begin ( ) << std::endl; + + CPPUNIT_ASSERT ( range.first - str.begin ( ) == 14 ); + CPPUNIT_ASSERT ( range.second - str.begin ( ) == 14 ); + } }