forked from bblanchon/ArduinoJson
Marked strdup()
as deprecated (issue #658)
This commit is contained in:
@ -240,11 +240,4 @@ TEST_CASE("std::string") {
|
||||
|
||||
REQUIRE(sizeBefore == sizeAfter);
|
||||
}
|
||||
|
||||
SECTION("JsonBuffer_strdup") {
|
||||
std::string original("hello");
|
||||
const char *copy = jb.strdup(original);
|
||||
original[0] = 'w';
|
||||
REQUIRE(std::string("hello") == copy);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user