meta: updated tests, CR_UNLOAD isn't passed on close

This commit is contained in:
Michele Caini
2019-12-17 13:58:19 +01:00
parent 94a5a4ac1e
commit a32373bc3a
2 changed files with 6 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ TEST(Lib, Meta) {
cr_plugin_update(ctx);
ASSERT_TRUE(entt::resolve("position"_hs));
ASSERT_TRUE(entt::resolve("velocity"_hs));
ASSERT_TRUE(entt::resolve<double>().conv<int>());
auto pos = entt::resolve("position"_hs).construct(42., 3.);
@@ -47,4 +48,7 @@ TEST(Lib, Meta) {
ud.any.emplace<void>();
cr_plugin_close(ctx);
ASSERT_FALSE(entt::resolve("position"_hs));
ASSERT_FALSE(entt::resolve("velocity"_hs));
}