We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 411e44a commit 1891605Copy full SHA for 1891605
test/src/String/test_replace.cpp
@@ -51,7 +51,14 @@ TEST_CASE ("Testing String::replace(String, String) when string constains subtr
51
REQUIRE(strcmp(str.c_str(), "He11o Arduino!") == 0);
52
}
53
54
-TEST_CASE ("Testing String::replace(String, String) substr 'find' smaller than 'replace'", "[String-replace-06]")
+TEST_CASE ("Testing String::replace(String, String) substr 'find' larger than 'replace'", "[String-replace-06]")
55
+{
56
+ arduino::String str("Hello Arduino!");
57
+ str.replace(arduino::String("llo"), arduino::String("11"));
58
+ REQUIRE(strcmp(str.c_str(), "He11 Arduino!") == 0);
59
+}
60
+
61
+TEST_CASE ("Testing String::replace(String, String) substr 'find' smaller than 'replace'", "[String-replace-07]")
62
{
63
arduino::String str("Hello Arduino!");
64
str.replace(arduino::String("ll"), arduino::String("111"));
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments