forked from bblanchon/ArduinoJson
Copy JsonArray and JsonObject, instead of storing pointers (fixes #780)
This commit is contained in:
1 parent
2998a55f0b
commit
b106b1ed14
52 files changed
+971
-978
No files matched your search
@@ -35,13 +35,13 @@ TEST_CASE("JsonVariant::isNull()") {
|
||||
REQUIRE(variant.isNull() == false);
|
||||
}
|
||||
|
||||
SECTION("return true when InvalidArray") {
|
||||
variant.set(JsonArray());
|
||||
REQUIRE(variant.isNull() == true);
|
||||
}
|
||||
|
||||
SECTION("return true when InvalidObject") {
|
||||
variant.set(JsonObject());
|
||||
REQUIRE(variant.isNull() == true);
|
||||
}
|
||||
/* SECTION("return true when InvalidArray") {
|
||||
variant.set(JsonArray());
|
||||
REQUIRE(variant.isNull() == true);
|
||||
}
|
||||
*/
|
||||
/* SECTION("return true when InvalidObject") {
|
||||
variant.set(JsonObject());
|
||||
REQUIRE(variant.isNull() == true);
|
||||
}*/
|
||||
}
|
||||
Reference in new issue
Block a user