mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2026-04-29 10:34:08 +02:00
Store index of slot in the pool instead of a pointer or a distance
This commit is contained in:
@@ -15,7 +15,7 @@ TEST_CASE("ResourceManager::clear()") {
|
||||
ResourceManager resources(poolCapacity);
|
||||
|
||||
SECTION("Discards allocated variants") {
|
||||
resources.allocVariant();
|
||||
resources.allocSlot();
|
||||
|
||||
resources.clear();
|
||||
REQUIRE(resources.size() == 0);
|
||||
|
||||
Reference in New Issue
Block a user