diff --git a/test/entt/entity/component.cpp b/test/entt/entity/component.cpp index d48647bdc..55a15a1fc 100644 --- a/test/entt/entity/component.cpp +++ b/test/entt/entity/component.cpp @@ -1,6 +1,7 @@ #include #include #include +#include "../common/non_movable.h" struct empty {}; @@ -8,13 +9,6 @@ struct non_empty { int value; }; -struct non_movable { - non_movable() = default; - non_movable(const non_movable &) = delete; - non_movable &operator=(const non_movable &) = delete; - int value; -}; - struct self_contained { static constexpr auto in_place_delete = true; static constexpr auto page_size = 4u; @@ -51,7 +45,7 @@ TEST(Component, NonEmpty) { } TEST(Component, NonMovable) { - using traits_type = entt::component_traits; + using traits_type = entt::component_traits; ASSERT_TRUE(traits_type::in_place_delete); ASSERT_EQ(traits_type::page_size, ENTT_PACKED_PAGE);