mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 04:22:18 +02:00
MemoryPool
calls the Allocator
directly
This commit is contained in:
@ -11,8 +11,7 @@ using namespace ArduinoJson::detail;
|
||||
static const size_t poolCapacity = 512;
|
||||
|
||||
TEST_CASE("MemoryPool::clear()") {
|
||||
char buffer[poolCapacity];
|
||||
MemoryPool pool(buffer, sizeof(buffer));
|
||||
MemoryPool pool(poolCapacity);
|
||||
|
||||
SECTION("Discards allocated variants") {
|
||||
pool.allocVariant();
|
||||
|
Reference in New Issue
Block a user