mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-29 05:21:37 +03:00
Fix strstr return type
This commit is contained in:
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user