瀏覽代碼

test: remove tests no longer needed

Michele Caini 1 年之前
父節點
當前提交
12125e6e60
共有 1 個文件被更改,包括 0 次插入28 次删除
  1. 0 28
      test/entt/meta/meta_type.cpp

+ 0 - 28
test/entt/meta/meta_type.cpp

@@ -735,34 +735,6 @@ TEST_F(MetaType, Variables) {
     ASSERT_EQ(value, 3.);
 }
 
-TEST_F(MetaType, PropertiesAndCornerCases) {
-    using namespace entt::literals;
-
-    auto type = entt::resolve<property_type>();
-
-    ASSERT_EQ(type.prop().cbegin(), type.prop().cend());
-
-    ASSERT_EQ(type.data("random"_hs).prop(static_cast<entt::id_type>(property_type::random)).value().cast<int>(), 0);
-    ASSERT_EQ(type.data("random"_hs).prop(static_cast<entt::id_type>(property_type::value)).value().cast<int>(), 3);
-
-    ASSERT_EQ(type.data("value"_hs).prop(static_cast<entt::id_type>(property_type::random)).value().cast<bool>(), true);
-    ASSERT_EQ(type.data("value"_hs).prop(static_cast<entt::id_type>(property_type::value)).value().cast<int>(), 0);
-    ASSERT_TRUE(type.data("value"_hs).prop(static_cast<entt::id_type>(property_type::key_only)));
-    ASSERT_FALSE(type.data("value"_hs).prop(static_cast<entt::id_type>(property_type::key_only)).value());
-
-    ASSERT_TRUE(type.data("key_only"_hs).prop(static_cast<entt::id_type>(property_type::key_only)));
-    ASSERT_FALSE(type.data("key_only"_hs).prop(static_cast<entt::id_type>(property_type::key_only)).value());
-
-    ASSERT_EQ(type.data("list"_hs).prop(static_cast<entt::id_type>(property_type::random)).value().cast<bool>(), false);
-    ASSERT_EQ(type.data("list"_hs).prop(static_cast<entt::id_type>(property_type::value)).value().cast<int>(), 0);
-    ASSERT_TRUE(type.data("list"_hs).prop(static_cast<entt::id_type>(property_type::key_only)));
-    ASSERT_FALSE(type.data("list"_hs).prop(static_cast<entt::id_type>(property_type::key_only)).value());
-
-    type = entt::resolve<void>();
-
-    ASSERT_EQ(type.prop().cbegin(), type.prop().cend());
-}
-
 TEST_F(MetaType, ResetAndReRegistrationAfterReset) {
     using namespace entt::literals;