Răsfoiți Sursa

test: improve code coverage on deprecated function

Michele Caini 2 ani în urmă
părinte
comite
52f8e6db30
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      test/entt/entity/helper.cpp

+ 3 - 0
test/entt/entity/helper.cpp

@@ -66,6 +66,9 @@ TYPED_TEST(ToEntity, Functionalities) {
 
     entt::registry registry;
     const entt::entity null = entt::null;
+
+    ASSERT_EQ(entt::to_entity(registry, value_type{42}), null); // NOLINT
+
     auto &storage = registry.storage<value_type>();
     constexpr auto page_size = entt::storage_type_t<value_type>::traits_type::page_size;
     const value_type value{42};