chore: add test case for replaceInPlace()

This commit is contained in:
Günter Obiltschnig 2024-09-28 12:05:08 +02:00
parent 0300b42dbc
commit 04fe04e3a4

View File

@ -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');