Browse Source

test: cleanup core

skypjack 3 months ago
parent
commit
784ba1e9cd
3 changed files with 5 additions and 5 deletions
  1. 1 1
      test/entt/core/enum.cpp
  2. 2 2
      test/entt/core/memory.cpp
  3. 2 2
      test/entt/core/type_traits.cpp

+ 1 - 1
test/entt/core/enum.cpp

@@ -12,7 +12,7 @@ using EnumTypes = ::testing::Types<test::enum_is_bitmask, test::enum_as_bitmask>
 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));

+ 2 - 2
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<string_type> allocator{&memory_resource};
@@ -186,7 +186,7 @@ TEST(UninitializedConstructUsingAllocator, NoUsesAllocatorConstruction) {
 #    include <memory_resource>
 
 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<string_type> allocator{&memory_resource};

+ 2 - 2
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<typename entt::integral_constant<3>::value_type, int>();
+    testing::StaticAssertTypeEq<entt::integral_constant<3>::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<typename entt::tag<"foobar"_hs>::value_type, entt::id_type>();
+    testing::StaticAssertTypeEq<entt::tag<"foobar"_hs>::value_type, entt::id_type>();
 }