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

@ -25,10 +25,10 @@ TEST_CASE("ResourceManager::size()") {
const size_t variantCount = resources.capacity() / sizeof(VariantSlot);
for (size_t i = 0; i < variantCount; i++)
new (&resources) VariantSlot();
resources.allocVariant();
size_t size = resources.size();
new (&resources) VariantSlot();
resources.allocVariant();
REQUIRE(size == resources.size());
}