mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
chore: add test case for replaceInPlace()
This commit is contained in:
parent
0300b42dbc
commit
04fe04e3a4
@ -431,6 +431,10 @@ void StringTest::testReplaceInPlace()
|
||||
|
||||
replaceInPlace(s, std::string("aa"), std::string("xx"));
|
||||
assertTrue (s == "xxbbccdd");
|
||||
|
||||
s = "aabbccdd";
|
||||
replaceInPlace(s, "aa", "xx");
|
||||
assertTrue (s == "xxbbccdd");
|
||||
|
||||
s = "aabbccdd";
|
||||
replaceInPlace(s, 'a', 'x');
|
||||
|
Loading…
Reference in New Issue
Block a user