forked from bblanchon/ArduinoJson
Improved coverage of JsonObject
This commit is contained in:
@ -30,6 +30,11 @@ TEST_CASE("JsonObject::begin()/end()") {
|
||||
REQUIRE(obj.end()->key().isNull());
|
||||
REQUIRE(obj.end()->value().isNull());
|
||||
}
|
||||
|
||||
SECTION("null JsonObject") {
|
||||
JsonObject null;
|
||||
REQUIRE(null.begin() == null.end());
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("JsonObjectConst::begin()/end()") {
|
||||
@ -60,4 +65,9 @@ TEST_CASE("JsonObjectConst::begin()/end()") {
|
||||
REQUIRE(cobj.end()->key().isNull());
|
||||
REQUIRE(cobj.end()->value().isNull());
|
||||
}
|
||||
|
||||
SECTION("null JsonObjectConst") {
|
||||
JsonObjectConst null;
|
||||
REQUIRE(null.begin() == null.end());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user