mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-15 19:42:12 +02:00
Test initial size() of DynamicJsonBuffer
This commit is contained in:
21
test/DynamicJsonBuffer_Basic_Tests.cpp
Normal file
21
test/DynamicJsonBuffer_Basic_Tests.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
// Copyright Benoit Blanchon 2014
|
||||
// MIT License
|
||||
//
|
||||
// Arduino JSON library
|
||||
// https://github.com/bblanchon/ArduinoJson
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#define protected public
|
||||
#include <ArduinoJson/DynamicJsonBuffer.hpp>
|
||||
|
||||
using namespace ArduinoJson;
|
||||
|
||||
class DynamicJsonBuffer_Basic_Tests : public testing::Test {
|
||||
protected:
|
||||
DynamicJsonBuffer buffer;
|
||||
};
|
||||
|
||||
TEST_F(DynamicJsonBuffer_Basic_Tests, InitialSizeIsZero) {
|
||||
ASSERT_EQ(0, buffer.size());
|
||||
}
|
Reference in New Issue
Block a user