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 5af3256 commit 3d30942Copy full SHA for 3d30942
test/src/String/test_String.cpp
@@ -101,3 +101,10 @@ TEST_CASE ("Testing String(const __FlashStringHelper) constructor() with invalid
101
arduino::String str1(F(buffer));
102
REQUIRE(str1.compareTo("Hello") == 0);
103
}
104
+
105
+TEST_CASE ("Testing String(StringSumHelper &&) constructor()", "[String-Ctor-13]")
106
+{
107
+ arduino::String&& str1 = "Hello";
108
+ arduino::String str2(str1);
109
+ REQUIRE(strcmp(str1.c_str(), str2.c_str()) == 0);
110
+}
0 commit comments