meta: tests

This commit is contained in:
Michele Caini
2019-10-07 23:03:44 +02:00
parent faf7e28119
commit 4404601fa3
4 changed files with 5 additions and 15 deletions

View File

@@ -13,11 +13,6 @@
#endif
#endif
ENTT_NAMED_TYPE(int)
ENTT_NAMED_TYPE(char)
ENTT_NAMED_TYPE(double)
ENTT_NAMED_TYPE(float)
LIB_EXPORT typename entt::component a_module_int_type() {
entt::registry registry;

View File

@@ -13,17 +13,12 @@
#endif
#endif
ENTT_NAMED_TYPE(int)
ENTT_NAMED_TYPE(char)
ENTT_NAMED_TYPE(double)
ENTT_NAMED_TYPE(float)
LIB_EXPORT typename entt::component another_module_int_type() {
entt::registry registry;
(void)registry.type<char>();
(void)registry.type<const int>();
(void)registry.type<double>();
(void)registry.type<const int>();
(void)registry.type<const char>();
(void)registry.type<float>();
@@ -34,8 +29,8 @@ LIB_EXPORT typename entt::component another_module_char_type() {
entt::registry registry;
(void)registry.type<int>();
(void)registry.type<const char>();
(void)registry.type<float>();
(void)registry.type<const char>();
(void)registry.type<const int>();
(void)registry.type<double>();

View File

@@ -26,9 +26,6 @@ struct listener {
int value;
};
ENTT_NAMED_TYPE(int)
ENTT_NAMED_TYPE(char)
TEST(Lib, Types) {
entt::registry registry;

View File

@@ -20,3 +20,6 @@ ENTT_NAMED_STRUCT(an_event, {
})
ENTT_NAMED_STRUCT(another_event, {})
ENTT_NAMED_TYPE(int)
ENTT_NAMED_TYPE(char)