Michele Caini 2 роки тому
батько
коміт
7ab10e1936
1 змінених файлів з 16 додано та 16 видалено
  1. 16 16
      test/entt/entity/registry.cpp

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

@@ -2154,22 +2154,6 @@ TEST(Registry, Storage) {
     ASSERT_EQ(cit->first, entt::type_id<entt::entity>().hash());
 }
 
-TEST(Registry, VoidType) {
-    using namespace entt::literals;
-
-    entt::registry registry;
-    const auto entity = registry.create();
-    auto &storage = registry.storage<void>("custom"_hs);
-    storage.emplace(entity);
-
-    ASSERT_TRUE(registry.storage<void>().empty());
-    ASSERT_FALSE(registry.storage<void>("custom"_hs).empty());
-    ASSERT_TRUE(registry.storage<void>("custom"_hs).contains(entity));
-
-    ASSERT_EQ(registry.storage<void>().type(), entt::type_id<void>());
-    ASSERT_EQ(registry.storage<void>("custom"_hs).type(), entt::type_id<void>());
-}
-
 TEST(Registry, RegistryStorageIterator) {
     entt::registry registry;
     const auto entity = registry.create();
@@ -2251,6 +2235,22 @@ TEST(Registry, RegistryStorageIteratorConversion) {
     ASSERT_NE(++cit, it);
 }
 
+TEST(Registry, VoidType) {
+    using namespace entt::literals;
+
+    entt::registry registry;
+    const auto entity = registry.create();
+    auto &storage = registry.storage<void>("custom"_hs);
+    storage.emplace(entity);
+
+    ASSERT_TRUE(registry.storage<void>().empty());
+    ASSERT_FALSE(registry.storage<void>("custom"_hs).empty());
+    ASSERT_TRUE(registry.storage<void>("custom"_hs).contains(entity));
+
+    ASSERT_EQ(registry.storage<void>().type(), entt::type_id<void>());
+    ASSERT_EQ(registry.storage<void>("custom"_hs).type(), entt::type_id<void>());
+}
+
 TEST(Registry, NoEtoType) {
     entt::registry registry;
     const auto entity = registry.create();