Przeglądaj źródła

tests: minor changes

Michele Caini 3 lat temu
rodzic
commit
41081204f9

+ 2 - 2
test/lib/meta_plugin/main.cpp

@@ -18,9 +18,9 @@ TEST(Lib, Meta) {
     ud.ctx = entt::locator<entt::meta_ctx>::handle();
 
     cr_plugin ctx;
-    cr_plugin_load(ctx, PLUGIN);
-
     ctx.userdata = &ud;
+
+    cr_plugin_load(ctx, PLUGIN);
     cr_plugin_update(ctx);
 
     entt::meta<double>().conv<int>();

+ 2 - 2
test/lib/meta_plugin_std/main.cpp

@@ -17,9 +17,9 @@ TEST(Lib, Meta) {
     ud.ctx = entt::locator<entt::meta_ctx>::handle();
 
     cr_plugin ctx;
-    cr_plugin_load(ctx, PLUGIN);
-
     ctx.userdata = &ud;
+
+    cr_plugin_load(ctx, PLUGIN);
     cr_plugin_update(ctx);
 
     entt::meta<double>().conv<int>();