Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
genaray committed Oct 18, 2024
1 parent 24d8687 commit aa95535
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Arch.Tests/WorldTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/// <summary>
Expand Down

0 comments on commit aa95535

Please sign in to comment.