forked from bblanchon/ArduinoJson
Huge refactoring in progress...
This commit is contained in:
1 parent
c3001e9ea9
commit
4c204840e9
25 files changed
+108
-79
No files matched your search
@@ -46,14 +46,14 @@ TEST(StaticJsonBuffer,
|
||||
WhenCreateObjectIsCalled_ThenAnEmptyJsonObjectIsReturned) {
|
||||
StaticJsonBuffer<42> json;
|
||||
|
||||
JsonObject obj = json.createObject();
|
||||
JsonObject &obj = json.createObject();
|
||||
EXPECT_EQ(0, obj.size());
|
||||
}
|
||||
|
||||
TEST(StaticJsonBuffer,
|
||||
GivenAJsonObject_WhenValuesAreAdded_ThenSizeIsIncreasedByTwo) {
|
||||
StaticJsonBuffer<42> json;
|
||||
JsonObject obj = json.createObject();
|
||||
JsonObject &obj = json.createObject();
|
||||
|
||||
obj["hello"];
|
||||
EXPECT_EQ(3, json.size());
|
||||
@@ -66,7 +66,7 @@ TEST(
|
||||
StaticJsonBuffer,
|
||||
GivenAJsonObject_WhenSameValuesAreAddedTwice_ThenSizeIsOnlyIncreasedByTwo) {
|
||||
StaticJsonBuffer<42> json;
|
||||
JsonObject obj = json.createObject();
|
||||
JsonObject &obj = json.createObject();
|
||||
|
||||
obj["hello"];
|
||||
EXPECT_EQ(3, json.size());
|
||||
|
||||
Reference in new issue
Block a user