forked from bblanchon/ArduinoJson
Added JsonObjectIterator::operator->()
This commit is contained in:
@ -16,12 +16,12 @@ TEST(JsonObject_Iterator_Test, SimpleTest)
|
||||
JsonObjectIterator end = object.end();
|
||||
|
||||
EXPECT_NE(end, it);
|
||||
EXPECT_STREQ("ab", it.key());
|
||||
EXPECT_EQ(12, static_cast<int>(it.value()));
|
||||
EXPECT_STREQ("ab", it->key());
|
||||
EXPECT_EQ(12, static_cast<int>(it->value()));
|
||||
++it;
|
||||
EXPECT_NE(end, it);
|
||||
EXPECT_STREQ("cd", it.key());
|
||||
EXPECT_EQ(34, static_cast<int>(it.value()));
|
||||
EXPECT_STREQ("cd", it->key());
|
||||
EXPECT_EQ(34, static_cast<int>(it->value()));
|
||||
++it;
|
||||
EXPECT_EQ(object.end(), it);
|
||||
}
|
Reference in New Issue
Block a user