From aa9553518540e2966d4d4f72738c037dd238fbe1 Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 18 Oct 2024 02:15:13 +0200 Subject: [PATCH] Fixed --- src/Arch.Tests/WorldTest.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Arch.Tests/WorldTest.cs b/src/Arch.Tests/WorldTest.cs index 86053f5..3f63fc3 100644 --- a/src/Arch.Tests/WorldTest.cs +++ b/src/Arch.Tests/WorldTest.cs @@ -240,12 +240,13 @@ public void CapacityTest() public void EnsureCapacity() { using var world = World.Create(); - var archetype = world.EnsureCapacity(_entityGroup, 10000); + var archetype = world.EnsureCapacity(_entityGroup, 11000); + var requiredEntityCapacity = Archetype.GetEntityCountFor(Archetype.GetByteCountFor(11_000, _entityGroup), _entityGroup); That(world.Size, Is.EqualTo(0)); That(world.Capacity, Is.EqualTo(archetype.EntityCapacity)); That(archetype.EntityCount, Is.EqualTo(0)); - That(archetype.EntityCapacity, Is.EqualTo(10240)); + That(archetype.EntityCapacity, Is.EqualTo(requiredEntityCapacity)); } ///