Skip to content

Commit

Permalink
Port C++ System Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BeanCheeseBurrito committed Apr 12, 2024
1 parent 9cd45c9 commit 377d025
Show file tree
Hide file tree
Showing 3 changed files with 2,620 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Flecs.NET.Tests/Cpp/QueryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ private void SharedTagWithEach()
q.Each((Entity qe) => { Assert.True(qe == e); });
}

private static int compare_position(ulong e1, void* p1, ulong e2, void* p2)
private static int ComparePosition(ulong e1, void* p1, ulong e2, void* p2)
{
Position* pos1 = (Position*)p1;
Position* pos2 = (Position*)p2;
Expand All @@ -1130,7 +1130,7 @@ private void SortBy()
world.Entity().Set(new Position(4, 0));

Query q = world.QueryBuilder<Position>()
.OrderBy<Position>(compare_position)
.OrderBy<Position>(ComparePosition)
.Build();

q.Iter((Iter it, Field<Position> p) =>
Expand Down
Loading

0 comments on commit 377d025

Please sign in to comment.