From 52f8e6db304dc2f2efec4dfb4f9d8775457a16b7 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 8 Jan 2024 15:23:49 +0100 Subject: [PATCH] test: improve code coverage on deprecated function --- test/entt/entity/helper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/entt/entity/helper.cpp b/test/entt/entity/helper.cpp index 526abbab7..f90ce53a0 100644 --- a/test/entt/entity/helper.cpp +++ b/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(); constexpr auto page_size = entt::storage_type_t::traits_type::page_size; const value_type value{42};