ResourceManager: replace allocFromPool() with allocVariant()

This commit is contained in:
Benoit Blanchon
2023-06-16 16:09:40 +02:00
parent 2cf7fc5427
commit 8147625921
9 changed files with 34 additions and 35 deletions

View File

@ -15,7 +15,7 @@ TEST_CASE("ResourceManager::clear()") {
ResourceManager resources(poolCapacity);
SECTION("Discards allocated variants") {
new (&resources) VariantSlot();
resources.allocVariant();
resources.clear();
REQUIRE(resources.size() == 0);