Browse Source

meta: tests (code coverage) for meta_ctor (implicitly generated default constructor)

Michele Caini 5 years ago
parent
commit
edeef3541c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/entt/meta/meta_ctor.cpp

+ 1 - 0
test/entt/meta/meta_ctor.cpp

@@ -221,6 +221,7 @@ TEST_F(MetaCtor, ImplicitlyGeneratedDefaultConstructor) {
     // default constructor is implicitly generated
     ASSERT_EQ(counter, 1);
     ASSERT_TRUE(type.ctor<>());
+    ASSERT_EQ(type.ctor<>().size(), 0u);
     ASSERT_EQ(type.ctor<>().arg(0), entt::meta_type{});
 
     auto any = type.ctor<>().invoke();