diff --git a/test/entt/entity/runtime_view.cpp b/test/entt/entity/runtime_view.cpp index abfba7a1c..259c91bca 100644 --- a/test/entt/entity/runtime_view.cpp +++ b/test/entt/entity/runtime_view.cpp @@ -4,11 +4,7 @@ #include #include #include - -struct pointer_stable { - static constexpr auto in_place_delete = true; - int value{}; -}; +#include "../common/pointer_stable.h" template struct RuntimeView: testing::Test { @@ -341,12 +337,12 @@ TYPED_TEST(RuntimeView, StableType) { registry.emplace(e1); registry.emplace(e2); - registry.emplace(e0); - registry.emplace(e1); + registry.emplace(e0); + registry.emplace(e1); - registry.remove(e1); + registry.remove(e1); - view.iterate(registry.storage()).iterate(registry.storage()); + view.iterate(registry.storage()).iterate(registry.storage()); ASSERT_EQ(view.size_hint(), 2u); ASSERT_TRUE(view.contains(e0)); @@ -378,11 +374,11 @@ TYPED_TEST(RuntimeView, StableTypeWithExcludedComponent) { const auto entity = registry.create(); const auto other = registry.create(); - registry.emplace(entity, 0); - registry.emplace(other, 42); + registry.emplace(entity, 0); + registry.emplace(other, 42); registry.emplace(entity); - view.iterate(registry.storage()).exclude(registry.storage()); + view.iterate(registry.storage()).exclude(registry.storage()); ASSERT_EQ(view.size_hint(), 2u); ASSERT_FALSE(view.contains(entity));