Redesigned JsonVariant to leverage converting constructors instead of assignment operators

This commit is contained in:
Benoit Blanchon committed 2015-05-23 15:32:50 +02:00
1 parent 08d05df00e
commit 756c279cdc
44 files changed
+934 -649

No files matched your search

+2 -2
View File
@@ -35,11 +35,11 @@ class JsonParser_Array_Tests : public testing::Test {
template <typename T>
void elementAtIndexMustBe(int index, T expected) {
EXPECT_EQ(expected, _array->at(index).as<T>());
EXPECT_EQ(expected, (*_array)[index].as<T>());
}
void elementAtIndexMustBe(int index, const char *expected) {
EXPECT_STREQ(expected, _array->at(index).as<const char *>());
EXPECT_STREQ(expected, (*_array)[index].as<const char *>());
}
DynamicJsonBuffer _jsonBuffer;