forked from bblanchon/ArduinoJson
Restored the monotonic allocator
This commit is contained in:
@ -21,16 +21,6 @@ TEST_CASE("MemoryPool::allocVariant()") {
|
||||
REQUIRE(s1 != s2);
|
||||
}
|
||||
|
||||
SECTION("Returns same pointer after freeSlot()") {
|
||||
MemoryPool pool(buffer, sizeof(buffer));
|
||||
|
||||
VariantSlot* s1 = pool.allocVariant();
|
||||
pool.freeVariant(s1);
|
||||
VariantSlot* s2 = pool.allocVariant();
|
||||
|
||||
REQUIRE(s1 == s2);
|
||||
}
|
||||
|
||||
SECTION("Returns aligned pointers") {
|
||||
MemoryPool pool(buffer, sizeof(buffer));
|
||||
|
||||
|
Reference in New Issue
Block a user