forked from bblanchon/ArduinoJson
Add more tests for JsonObjectConst
This commit is contained in:
1 parent
44d2d47863
commit
08cac13c43
15 files changed
+281
-89
No files matched your search
@@ -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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user