mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-15 03:26:39 +02:00
Copy JsonArray and JsonObject, instead of storing pointers (fixes #780)
This commit is contained in:
@ -40,4 +40,9 @@ TEST_CASE("JsonObject::begin()/end()") {
|
||||
// ++it;
|
||||
// REQUIRE(const_object.end() == it);
|
||||
// }
|
||||
|
||||
SECTION("Dereferencing end() is safe") {
|
||||
REQUIRE(obj.end()->key() == 0);
|
||||
REQUIRE(obj.end()->value().isNull());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user