mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-16 20:12:16 +02:00
Merged the two StringBuilder classes into one
This commit is contained in:
@ -8,8 +8,6 @@
|
||||
using namespace ARDUINOJSON_NAMESPACE;
|
||||
|
||||
TEST_CASE("StaticMemoryPool::startString()") {
|
||||
typedef StaticMemoryPoolBase::StringBuilder StringBuilder;
|
||||
|
||||
SECTION("WorksWhenBufferIsBigEnough") {
|
||||
StaticMemoryPool<6> memoryPool;
|
||||
|
||||
@ -40,12 +38,9 @@ TEST_CASE("StaticMemoryPool::startString()") {
|
||||
StaticMemoryPool<5> memoryPool;
|
||||
|
||||
StringBuilder str = memoryPool.startString();
|
||||
REQUIRE(0 == memoryPool.size());
|
||||
|
||||
str.append('h');
|
||||
REQUIRE(1 == memoryPool.size());
|
||||
|
||||
str.complete();
|
||||
|
||||
REQUIRE(2 == memoryPool.size());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user