Bladeren bron

tests: minor changes

Michele Caini 3 jaren geleden
bovenliggende
commit
41081204f9
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 2 2
      test/lib/meta_plugin/main.cpp
  2. 2 2
      test/lib/meta_plugin_std/main.cpp

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

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