forked from bblanchon/ArduinoJson
Store index of slot in the pool instead of a pointer or a distance
This commit is contained in:
1 parent
068c40d6ed
commit
c4e5051a7a
44 files changed
+343
-310
No files matched your search
@@ -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