#include #include extern typename entt::registry<>::component_type a_module_int_type(); extern typename entt::registry<>::component_type a_module_char_type(); extern typename entt::registry<>::component_type another_module_int_type(); extern typename entt::registry<>::component_type another_module_char_type(); ENTT_SHARED_TYPE(int); ENTT_SHARED_TYPE(char); TEST(Lib, Shared) { entt::registry<> registry; ASSERT_EQ(registry.type(), registry.type()); ASSERT_EQ(registry.type(), registry.type()); ASSERT_EQ(registry.type(), a_module_int_type()); ASSERT_EQ(registry.type(), a_module_char_type()); ASSERT_EQ(registry.type(), a_module_int_type()); ASSERT_EQ(registry.type(), a_module_char_type()); ASSERT_EQ(registry.type(), another_module_char_type()); ASSERT_EQ(registry.type(), another_module_int_type()); ASSERT_EQ(registry.type(), another_module_char_type()); ASSERT_EQ(registry.type(), another_module_int_type()); }