Parse empty array

This commit is contained in:
Benoit Blanchon committed 2014-10-14 17:16:21 +02:00
1 parent c7dcf864cc
commit f468db6757
4 files changed
+24 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#include <gtest/gtest.h>
#include <StaticJsonBuffer.h>
class JsonArray_Parser_Tests : public testing::Test
{
protected:
StaticJsonBuffer<42> json;
};
TEST_F(JsonArray_Parser_Tests, EmptyArray)
{
JsonArray array = json.parseArray("[]");
EXPECT_EQ(0, array.size());
}