test: cleanup

This commit is contained in:
Michele Caini
2024-07-05 11:24:54 +02:00
parent 54881e58b5
commit b48666d3d1
2 changed files with 4 additions and 4 deletions

View File

@@ -318,7 +318,7 @@ TEST(NonOwningGroup, SortAsAPool) {
ASSERT_EQ(group.get<const int>(entity), --ival);
}
registry.sort<unsigned int>(std::less<>{});
registry.sort<unsigned int>(std::less{});
const entt::sparse_set &other = *group.storage<unsigned int>();
group.sort_as(other.begin(), other.end());

View File

@@ -2151,7 +2151,7 @@ TEST(Registry, SortSingle) {
ASSERT_EQ(registry.get<int>(entity), --val);
}
registry.sort<int>(std::less<>{});
registry.sort<int>(std::less{});
for(auto entity: registry.view<int>()) {
ASSERT_EQ(registry.get<int>(entity), val++);
@@ -2178,7 +2178,7 @@ TEST(Registry, SortMulti) {
ASSERT_EQ(registry.get<int>(entity), --ival);
}
registry.sort<unsigned int>(std::less<>{});
registry.sort<unsigned int>(std::less{});
registry.sort<int, unsigned int>();
for(auto entity: registry.view<unsigned int>()) {
@@ -2200,7 +2200,7 @@ TEST(Registry, SortEmpty) {
ASSERT_LT(registry.storage<test::empty>().data()[0], registry.storage<test::empty>().data()[1]);
ASSERT_LT(registry.storage<test::empty>().data()[1], registry.storage<test::empty>().data()[2]);
registry.sort<test::empty>(std::less<>{});
registry.sort<test::empty>(std::less{});
ASSERT_GT(registry.storage<test::empty>().data()[0], registry.storage<test::empty>().data()[1]);
ASSERT_GT(registry.storage<test::empty>().data()[1], registry.storage<test::empty>().data()[2]);