forked from bblanchon/ArduinoJson
Test empty object serialization
This commit is contained in:
1 parent
d3cf568d07
commit
ab2587f089
6 files changed
+53
No files matched your search
@@ -93,4 +93,16 @@ TEST_F(JsonValueTests, CharPointersAreCopied)
|
||||
jsonValue1 = "world";
|
||||
|
||||
EXPECT_STREQ("hello", (const char*) jsonValue2);
|
||||
}
|
||||
|
||||
TEST_F(JsonValueTests, ObjectPointsAreCopied)
|
||||
{
|
||||
JsonObject object = json.createObject();
|
||||
|
||||
jsonValue1 = object;
|
||||
jsonValue2 = jsonValue1;
|
||||
|
||||
object["hello"] = "world";
|
||||
|
||||
EXPECT_EQ(1, ((JsonObject) jsonValue2).size());
|
||||
}
|
||||
Reference in new issue
Block a user