mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
Fix strstr return type
This commit is contained in:
parent
c3b33d5bab
commit
54ae922037
@ -20,8 +20,8 @@
|
|||||||
TEST_CASE("strstr_P works as strstr", "[core][pgmspace]")
|
TEST_CASE("strstr_P works as strstr", "[core][pgmspace]")
|
||||||
{
|
{
|
||||||
auto t = [](const char* h, const char* n) {
|
auto t = [](const char* h, const char* n) {
|
||||||
char* strstr_P_result = strstr_P(h, n);
|
const char* strstr_P_result = strstr_P(h, n);
|
||||||
char* strstr_result = strstr(h, n);
|
const char* strstr_result = strstr(h, n);
|
||||||
REQUIRE(strstr_P_result == strstr_result);
|
REQUIRE(strstr_P_result == strstr_result);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user