Browse Source

test: minor changes

skypjack 2 years ago
parent
commit
1e65fede6c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      test/entt/meta/meta_any.cpp

+ 3 - 0
test/entt/meta/meta_any.cpp

@@ -1215,6 +1215,9 @@ TEST_F(MetaAny, OpaqueAllowCast) {
 
 
     ASSERT_TRUE(as_cref.allow_cast(entt::resolve<double>()));
     ASSERT_TRUE(as_cref.allow_cast(entt::resolve<double>()));
     ASSERT_EQ(as_cref.type(), entt::resolve<double>());
     ASSERT_EQ(as_cref.type(), entt::resolve<double>());
+
+    ASSERT_TRUE(as_cref.allow_cast(entt::resolve<float>()));
+    ASSERT_EQ(as_cref.type(), entt::resolve<float>());
 }
 }
 
 
 TEST_F(MetaAny, Convert) {
 TEST_F(MetaAny, Convert) {