Add more tests for JsonObjectConst

This commit is contained in:
Benoit Blanchon
2024-01-08 18:48:11 +01:00
parent 44d2d47863
commit 08cac13c43
15 changed files with 281 additions and 89 deletions

View File

@ -15,12 +15,6 @@ TEST_CASE("JsonObject::containsKey()") {
REQUIRE(true == obj.containsKey("hello"));
}
SECTION("works with JsonObjectConst") {
JsonObjectConst cobj = obj;
REQUIRE(false == cobj.containsKey("world"));
REQUIRE(true == cobj.containsKey("hello"));
}
SECTION("returns false after remove()") {
obj.remove("hello");