forked from bblanchon/ArduinoJson
Remove shallowCopy()
This commit is contained in:
1 parent
c37990d791
commit
39e8b63746
7 files changed
+1
-129
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user