Improved coverage of JsonObject

This commit is contained in:
Benoit Blanchon
2020-02-23 13:03:14 +01:00
parent a471aed6db
commit 0214c9bcad
4 changed files with 47 additions and 0 deletions

View File

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