From caea7bd1259030c16bce152c9f56dd1732ef8244 Mon Sep 17 00:00:00 2001 From: Pavol Droba Date: Sat, 15 Jan 2011 18:37:46 +0000 Subject: [PATCH] trim_all test fixed [SVN r68173] --- string/test/trim_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/string/test/trim_test.cpp b/string/test/trim_test.cpp index 6ab8057..a19b1b7 100644 --- a/string/test/trim_test.cpp +++ b/string/test/trim_test.cpp @@ -113,14 +113,14 @@ void trim_test() void trim_all_test() { string str1(" 1x x x x1 "); - string str2(" 2x x x x2 "); + string str2("+---...2x+--x--+x-+-x2...---+"); string str3(" "); // *** value passing tests *** // // general string test BOOST_CHECK( trim_all_copy( str1 )=="1x x x x1" ) ; - BOOST_CHECK( trim_all_copy( str2 )=="2x x x x2" ) ; + BOOST_CHECK( trim_all_copy_if( str2, is_punct() )=="2x+x-x-x2" ) ; // spaces-only string test BOOST_CHECK( trim_all_copy( str3 )=="" ); @@ -131,8 +131,8 @@ void trim_all_test() // general string test trim_all( str1 ); BOOST_CHECK( str1=="1x x x x1" ) ; - trim_all( str2 ); - BOOST_CHECK( str2=="2x x x x2" ) ; + trim_all_if( str2, is_punct() ); + BOOST_CHECK( str2=="2x+x-x-x2" ) ; // spaces-only string test str3 = " "; trim_all( str3 );