mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 04:22:18 +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