We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bd4018 commit 4bdadc9Copy full SHA for 4bdadc9
test/src/String/test_concat.cpp
@@ -98,4 +98,5 @@ TEST_CASE ("Testing String::concat(const __FlashStringHelper *)", "[String-conca
98
#define F(string_literal) (reinterpret_cast<const arduino::__FlashStringHelper *>(PSTR(string_literal)))
99
arduino::String str1("Hello");
100
REQUIRE(str1.concat(F(" Arduino")) == 1);
101
+ REQUIRE(strcmp(str1.c_str(), "Hello Arduino") == 0);
102
}
0 commit comments