1
0
Michele Caini 8 жил өмнө
parent
commit
b3df46db19

+ 1 - 0
test/entt/entity/registry.cpp

@@ -208,6 +208,7 @@ TEST(DefaultRegistry, Orphans) {
     registry.create();
     registry.create();
     registry.create<int>();
     registry.create<int>();
     registry.create();
     registry.create();
+    registry.attach<double>(registry.create());
 
 
     registry.orphans([&](auto) { ++tot; });
     registry.orphans([&](auto) { ++tot; });
     ASSERT_EQ(tot, 2u);
     ASSERT_EQ(tot, 2u);