Remove shallowCopy()

This commit is contained in:
Benoit Blanchon committed 2023-07-17 11:20:46 +02:00
1 parent c37990d791
commit 39e8b63746
7 files changed
+1 -129

No files matched your search

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