test: cleanup
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user