Increased test coverage

This commit is contained in:
Benoit Blanchon committed 2021-09-12 10:13:12 +02:00
1 parent 6a71f31820
commit e0cd5b6405
9 files changed
+147 -49

No files matched your search

+8 -3
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());
}
}