forked from boostorg/algorithm
find_all char* test case added
[SVN r23494]
This commit is contained in:
@ -44,7 +44,17 @@ void iterator_test()
|
|||||||
vector<string> tokens;
|
vector<string> tokens;
|
||||||
vector< vector<int> > vtokens;
|
vector< vector<int> > vtokens;
|
||||||
|
|
||||||
ifind_all(
|
// find_all tests
|
||||||
|
find_all(
|
||||||
|
tokens,
|
||||||
|
pch1,
|
||||||
|
"xx" );
|
||||||
|
|
||||||
|
BOOST_REQUIRE( tokens.size()==2 );
|
||||||
|
BOOST_CHECK( tokens[0]==string("xx") );
|
||||||
|
BOOST_CHECK( tokens[1]==string("xx") );
|
||||||
|
|
||||||
|
ifind_all(
|
||||||
tokens,
|
tokens,
|
||||||
str2,
|
str2,
|
||||||
"xx" );
|
"xx" );
|
||||||
@ -53,7 +63,6 @@ void iterator_test()
|
|||||||
BOOST_CHECK( tokens[0]==string("Xx") );
|
BOOST_CHECK( tokens[0]==string("Xx") );
|
||||||
BOOST_CHECK( tokens[1]==string("xX") );
|
BOOST_CHECK( tokens[1]==string("xX") );
|
||||||
|
|
||||||
// find_all tests
|
|
||||||
find_all(
|
find_all(
|
||||||
tokens,
|
tokens,
|
||||||
str1,
|
str1,
|
||||||
@ -63,7 +72,6 @@ void iterator_test()
|
|||||||
BOOST_CHECK( tokens[0]==string("xx") );
|
BOOST_CHECK( tokens[0]==string("xx") );
|
||||||
BOOST_CHECK( tokens[1]==string("xx") );
|
BOOST_CHECK( tokens[1]==string("xx") );
|
||||||
|
|
||||||
|
|
||||||
find_all(
|
find_all(
|
||||||
vtokens,
|
vtokens,
|
||||||
str1,
|
str1,
|
||||||
|
Reference in New Issue
Block a user