Marked strdup() as deprecated (issue #658)

This commit is contained in:
Benoit Blanchon
2018-01-14 14:02:10 +01:00
parent ae0b7a3ebd
commit 0612eef69b
8 changed files with 41 additions and 58 deletions

View File

@ -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);
}
}