mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-04 14:16:36 +02: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());
|
||
|
}
|