forked from bblanchon/ArduinoJson
Test that JsonArray can store strings
This commit is contained in:
1 parent
f0754aed53
commit
305944e907
1 file changed
+2
-2
@@ -54,7 +54,7 @@ TEST_F(JsonArray_Container_Tests, CanStoreBooleans)
|
|||||||
EXPECT_TRUE((bool) array[0]);
|
EXPECT_TRUE((bool) array[0]);
|
||||||
EXPECT_FALSE((bool) array[1]);
|
EXPECT_FALSE((bool) array[1]);
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
TEST_F(JsonArray_Container_Tests, CanStoreStrings)
|
TEST_F(JsonArray_Container_Tests, CanStoreStrings)
|
||||||
{
|
{
|
||||||
array.add("h3110");
|
array.add("h3110");
|
||||||
@@ -63,7 +63,7 @@ TEST_F(JsonArray_Container_Tests, CanStoreStrings)
|
|||||||
EXPECT_STREQ("h3110", (const char*) array[0]);
|
EXPECT_STREQ("h3110", (const char*) array[0]);
|
||||||
EXPECT_STREQ("w0r1d", (const char*) array[1]);
|
EXPECT_STREQ("w0r1d", (const char*) array[1]);
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
TEST_F(JsonArray_Container_Tests, CanStoreInnerArrays)
|
TEST_F(JsonArray_Container_Tests, CanStoreInnerArrays)
|
||||||
{
|
{
|
||||||
JsonArray innerarray1 = json.createArray();
|
JsonArray innerarray1 = json.createArray();
|
||||||
|
|||||||
Reference in new issue
Block a user