From 784ba1e9cd21206b2c2603f1abd31b27a5a7d7c8 Mon Sep 17 00:00:00 2001 From: skypjack Date: Fri, 5 Dec 2025 14:38:09 +0100 Subject: [PATCH] test: cleanup core --- test/entt/core/enum.cpp | 2 +- test/entt/core/memory.cpp | 4 ++-- test/entt/core/type_traits.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/entt/core/enum.cpp b/test/entt/core/enum.cpp index 06be88afd..3af06c9fd 100644 --- a/test/entt/core/enum.cpp +++ b/test/entt/core/enum.cpp @@ -12,7 +12,7 @@ using EnumTypes = ::testing::Types TYPED_TEST_SUITE(Enum, EnumTypes, ); TYPED_TEST(Enum, Functionalities) { - using enum_type = typename TestFixture::type; + using enum_type = TestFixture::type; ASSERT_TRUE(!!((enum_type::foo | enum_type::bar) & enum_type::foo)); ASSERT_TRUE(!!((enum_type::foo | enum_type::bar) & enum_type::bar)); diff --git a/test/entt/core/memory.cpp b/test/entt/core/memory.cpp index 391a245fe..720a2c0a2 100644 --- a/test/entt/core/memory.cpp +++ b/test/entt/core/memory.cpp @@ -75,7 +75,7 @@ TEST(AllocateUnique, NoUsesAllocatorConstruction) { } TEST(AllocateUnique, UsesAllocatorConstruction) { - using string_type = typename test::tracked_memory_resource::string_type; + using string_type = test::tracked_memory_resource::string_type; test::tracked_memory_resource memory_resource{}; std::pmr::polymorphic_allocator allocator{&memory_resource}; @@ -186,7 +186,7 @@ TEST(UninitializedConstructUsingAllocator, NoUsesAllocatorConstruction) { # include TEST(UninitializedConstructUsingAllocator, UsesAllocatorConstruction) { - using string_type = typename test::tracked_memory_resource::string_type; + using string_type = test::tracked_memory_resource::string_type; test::tracked_memory_resource memory_resource{}; const std::pmr::polymorphic_allocator allocator{&memory_resource}; diff --git a/test/entt/core/type_traits.cpp b/test/entt/core/type_traits.cpp index 0f79929cb..a92e23e1b 100644 --- a/test/entt/core/type_traits.cpp +++ b/test/entt/core/type_traits.cpp @@ -79,7 +79,7 @@ TEST_F(UnpackAsValue, Functionalities) { TEST(IntegralConstant, Functionalities) { const entt::integral_constant<3> constant{}; - testing::StaticAssertTypeEq::value_type, int>(); + testing::StaticAssertTypeEq::value_type, int>(); ASSERT_EQ(constant.value, 3); } @@ -275,5 +275,5 @@ TEST(NthArgument, Functionalities) { TEST(Tag, Functionalities) { using namespace entt::literals; ASSERT_EQ(entt::tag<"foobar"_hs>::value, entt::hashed_string::value("foobar")); - testing::StaticAssertTypeEq::value_type, entt::id_type>(); + testing::StaticAssertTypeEq::value_type, entt::id_type>(); }