mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 00:38:26 +01:00
20 lines
381 B
C++
20 lines
381 B
C++
#include <gtest/gtest.h>
|
|
#include <ArduinoJson/StaticJsonBuffer.hpp>
|
|
|
|
using namespace ArduinoJson;
|
|
|
|
class JsonParser_Object_Test : public testing::Test
|
|
{
|
|
protected:
|
|
|
|
|
|
};
|
|
|
|
TEST_F(JsonParser_Object_Test, EmptyObject)
|
|
{
|
|
StaticJsonBuffer<10> jsonBuffer;
|
|
char jsonString[] = "{}";
|
|
JsonObject object = jsonBuffer.parseObject(jsonString);
|
|
|
|
EXPECT_TRUE(object.success());
|
|
} |