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)); } ///