Exposed JsonPairConst

This commit is contained in:
Benoit Blanchon committed 2020-02-13 16:58:23 +01:00
1 parent fbffadb2cf
commit 372b7d3d9d
2 files changed
+7 -3

No files matched your search

+6 -3
View File
@@ -40,15 +40,18 @@ TEST_CASE("JsonObjectConst::begin()/end()") {
JsonObjectConst cobj = obj;
SECTION("NonConstIterator") {
SECTION("Iteration") {
JsonObjectConst::iterator it = cobj.begin();
REQUIRE(cobj.end() != it);
REQUIRE(it->key() == "ab");
REQUIRE(12 == it->value());
++it;
REQUIRE(cobj.end() != it);
REQUIRE(it->key() == "cd");
REQUIRE(34 == it->value());
JsonPairConst pair = *it;
REQUIRE(pair.key() == "cd");
REQUIRE(34 == pair.value());
++it;
REQUIRE(cobj.end() == it);
}