mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
15 lines
280 B
C++
15 lines
280 B
C++
#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());
|
|
} |