forked from bblanchon/ArduinoJson
Merged JsonArrayIterator and JsonObjectIterator into a one template class
This commit is contained in:
@ -17,8 +17,8 @@ TEST(JsonArray_Iterator_Test, SimpleTest) {
|
||||
array.add(12);
|
||||
array.add(34);
|
||||
|
||||
JsonArrayIterator it = array.begin();
|
||||
JsonArrayIterator end = array.end();
|
||||
JsonArray::iterator it = array.begin();
|
||||
JsonArray::iterator end = array.end();
|
||||
|
||||
EXPECT_NE(end, it);
|
||||
EXPECT_EQ(12, it->as<int>());
|
||||
|
@ -17,8 +17,8 @@ TEST(JsonObject_Iterator_Test, SimpleTest) {
|
||||
object["ab"] = 12;
|
||||
object["cd"] = 34;
|
||||
|
||||
JsonObjectIterator it = object.begin();
|
||||
JsonObjectIterator end = object.end();
|
||||
JsonObject::iterator it = object.begin();
|
||||
JsonObject::iterator end = object.end();
|
||||
|
||||
EXPECT_NE(end, it);
|
||||
EXPECT_STREQ("ab", it->key());
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <ArduinoJson/StaticJsonBuffer.hpp>
|
||||
#include <ArduinoJson/JsonValue.hpp>
|
||||
#include "Printers.hpp"
|
||||
|
||||
using namespace ArduinoJson;
|
||||
|
||||
|
Reference in New Issue
Block a user