forked from bblanchon/ArduinoJson
Increased test coverage
This commit is contained in:
@ -70,8 +70,13 @@ TEST_CASE("JsonObject::remove()") {
|
||||
}
|
||||
#endif
|
||||
|
||||
SECTION("should work on null object") {
|
||||
JsonObject null;
|
||||
null.remove("key");
|
||||
SECTION("remove by key on unbound reference") {
|
||||
JsonObject unboundObject;
|
||||
unboundObject.remove("key");
|
||||
}
|
||||
|
||||
SECTION("remove by iterator on unbound reference") {
|
||||
JsonObject unboundObject;
|
||||
unboundObject.remove(unboundObject.begin());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user