mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-24 15:57:30 +02:00
14 lines
306 B
C++
14 lines
306 B
C++
#include <gtest/gtest.h>
|
|
#include <StaticJsonBuffer.h>
|
|
|
|
TEST(StaticJsonBuffer, CapacityMatchTemplateParameter)
|
|
{
|
|
StaticJsonBuffer<42> json;
|
|
EXPECT_EQ(42, json.capacity());
|
|
}
|
|
|
|
TEST(StaticJsonBuffer, InitialSizeIsZero)
|
|
{
|
|
StaticJsonBuffer<42> json;
|
|
EXPECT_EQ(0, json.size());
|
|
} |