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

@ -70,19 +70,6 @@ TEST_CASE("JsonVariant::isNull()") {
REQUIRE(variant.isNull() == true);
}
SECTION("returns true for a shallow null copy") {
JsonDocument doc2(128);
variant.shallowCopy(doc2);
CHECK(variant.isNull() == true);
}
SECTION("returns false for a shallow array copy") {
JsonDocument doc2(128);
doc2[0] = 42;
variant.shallowCopy(doc2);
CHECK(variant.isNull() == false);
}
SECTION("works with JsonVariantConst") {
variant.set(42);