Bläddra i källkod

test: cleanup

Michele Caini 1 år sedan
förälder
incheckning
b48666d3d1
2 ändrade filer med 4 tillägg och 4 borttagningar
  1. 1 1
      test/entt/entity/group.cpp
  2. 3 3
      test/entt/entity/registry.cpp

+ 1 - 1
test/entt/entity/group.cpp

@@ -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());
 

+ 3 - 3
test/entt/entity/registry.cpp

@@ -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]);