Skip to content

Commit 4bdadc9

Browse files
committed
Adding missing but relevant REQUIRE statement
1 parent 4bd4018 commit 4bdadc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/src/String/test_concat.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@ TEST_CASE ("Testing String::concat(const __FlashStringHelper *)", "[String-conca
9898
#define F(string_literal) (reinterpret_cast<const arduino::__FlashStringHelper *>(PSTR(string_literal)))
9999
arduino::String str1("Hello");
100100
REQUIRE(str1.concat(F(" Arduino")) == 1);
101+
REQUIRE(strcmp(str1.c_str(), "Hello Arduino") == 0);
101102
}

0 commit comments

Comments
 (0)