test: cleanup core
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user