Increased test coverage

This commit is contained in:
Benoit Blanchon
2021-09-10 08:40:02 +02:00
parent 6a71f31820
commit e0cd5b6405
9 changed files with 147 additions and 49 deletions

View File

@ -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());
}
}