From 905cbf4a384017ff8234d698d69c9ba4b64a1dbb Mon Sep 17 00:00:00 2001 From: Pavol Droba Date: Tue, 13 Jul 2004 14:59:43 +0000 Subject: [PATCH] find_all char* test case added [SVN r23494] --- string/test/split_test.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/string/test/split_test.cpp b/string/test/split_test.cpp index f65310a..8e058e7 100644 --- a/string/test/split_test.cpp +++ b/string/test/split_test.cpp @@ -44,7 +44,17 @@ void iterator_test() vector tokens; vector< vector > 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, str2, "xx" ); @@ -53,7 +63,6 @@ void iterator_test() BOOST_CHECK( tokens[0]==string("Xx") ); BOOST_CHECK( tokens[1]==string("xX") ); - // find_all tests find_all( tokens, str1, @@ -63,7 +72,6 @@ void iterator_test() BOOST_CHECK( tokens[0]==string("xx") ); BOOST_CHECK( tokens[1]==string("xx") ); - find_all( vtokens, str1,