Remove shallowCopy()

This commit is contained in:
Benoit Blanchon
2023-07-03 12:02:24 +02:00
parent c37990d791
commit 39e8b63746
7 changed files with 1 additions and 129 deletions

View File

@ -246,11 +246,3 @@ TEST_CASE("ElementProxy cast to JsonVariant") {
CHECK(doc.as<std::string>() == "[\"toto\"]");
}
TEST_CASE("ElementProxy::shallowCopy()") {
JsonDocument doc1(1024), doc2(1024);
doc2["hello"] = "world";
doc1[0].shallowCopy(doc2);
CHECK(doc1.as<std::string>() == "[{\"hello\":\"world\"}]");
}