one more test for ReplaceSet(char, char)

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2394 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2003-01-09 14:00:47 +00:00
parent 4fff689f48
commit cfe8d4a743

View File

@ -246,6 +246,12 @@ StringReplaceTest::PerformTest(void)
CPPUNIT_ASSERT(strcmp(str1->String(), "xxc xxc xxc") == 0);
delete str1;
NextSubTest();
str1 = new BString("abcabcabcbababc");
str1->ReplaceSet("abc", 'c');
CPPUNIT_ASSERT(strcmp(str1->String(), "ccccccccccccccc") == 0);
delete str1;
//ReplaceSet(const char*, const char*)
NextSubTest();
str1 = new BString("abcd abcd abcd");