diff --git a/test/entt/core/hashed_string.cpp b/test/entt/core/hashed_string.cpp index 9e389891e..8f0cf7716 100644 --- a/test/entt/core/hashed_string.cpp +++ b/test/entt/core/hashed_string.cpp @@ -14,7 +14,7 @@ struct BasicHashedString: ::testing::Test { using HashedString = BasicHashedString; using HashedWString = BasicHashedString; -TEST_F(BasicHashedString, DeductionGuide) { +TEST_F(HashedString, DeductionGuide) { testing::StaticAssertTypeEq(); testing::StaticAssertTypeEq(); } @@ -123,6 +123,11 @@ TEST_F(HashedString, Constexprness) { ASSERT_GE(entt::hashed_string{"foo"}, "foo"_hs); } +TEST_F(HashedWString, DeductionGuide) { + testing::StaticAssertTypeEq(); + testing::StaticAssertTypeEq(); +} + TEST_F(HashedWString, Functionalities) { using namespace entt::literals; using hash_type = entt::hashed_wstring::hash_type; diff --git a/test/entt/core/ident.cpp b/test/entt/core/ident.cpp index d3deebd8c..338e1706c 100644 --- a/test/entt/core/ident.cpp +++ b/test/entt/core/ident.cpp @@ -27,7 +27,7 @@ TEST(Ident, Uniqueness) { } } -TEST(Identifier, SingleType) { +TEST(Ident, SingleType) { using id = entt::ident; [[maybe_unused]] const std::integral_constant> ic; } diff --git a/test/entt/core/iterator.cpp b/test/entt/core/iterator.cpp index 9653a8852..8b2cb75cc 100644 --- a/test/entt/core/iterator.cpp +++ b/test/entt/core/iterator.cpp @@ -5,7 +5,7 @@ #include #include "../../common/boxed_type.h" -TEST(InputIteratorPointer, Functionalities) { +TEST(Iterator, InputIteratorPointer) { entt::input_iterator_pointer ptr{test::boxed_int{0}}; ASSERT_EQ(ptr->value, 0); @@ -17,7 +17,7 @@ TEST(InputIteratorPointer, Functionalities) { ASSERT_EQ(ptr.operator->(), &ptr.operator*()); } -TEST(IotaIterator, Functionalities) { +TEST(Iterator, IotaIterator) { entt::iota_iterator first{}; const entt::iota_iterator last{2u}; @@ -31,7 +31,7 @@ TEST(IotaIterator, Functionalities) { ASSERT_EQ(*first, 2u); } -TEST(IterableAdaptor, Functionalities) { +TEST(Iterator, IterableAdaptor) { std::vector vec{1, 2}; entt::iterable_adaptor iterable{vec.begin(), vec.end()}; decltype(iterable) other{}; diff --git a/test/entt/core/utility.cpp b/test/entt/core/utility.cpp index 42ac1ff26..ee5c6b5d3 100644 --- a/test/entt/core/utility.cpp +++ b/test/entt/core/utility.cpp @@ -10,7 +10,7 @@ struct functions { void bar() {} }; -TEST(Overload, Functionalities) { +TEST(Utility, Overload) { ASSERT_EQ(entt::overload(&functions::foo), static_cast(&functions::foo)); ASSERT_EQ(entt::overload(&functions::foo), static_cast(&functions::foo)); @@ -27,7 +27,7 @@ TEST(Overload, Functionalities) { ASSERT_NO_THROW((instance.*entt::overload(&functions::bar))()); } -TEST(Overloaded, Functionalities) { +TEST(Utility, Overloaded) { int iv = 0; char cv = '\0'; @@ -42,7 +42,7 @@ TEST(Overloaded, Functionalities) { ASSERT_EQ(cv, 'c'); } -TEST(YCombinator, Functionalities) { +TEST(Utility, YCombinator) { entt::y_combinator gauss([](const auto &self, auto value) -> unsigned int { return value ? (value + self(value - 1u)) : 0; }); diff --git a/test/entt/locator/locator.cpp b/test/entt/locator/locator.cpp index f7709a2c1..405132bf9 100644 --- a/test/entt/locator/locator.cpp +++ b/test/entt/locator/locator.cpp @@ -20,22 +20,22 @@ private: int value; }; -struct ServiceLocator: ::testing::Test { +struct Locator: ::testing::Test { void SetUp() override { entt::locator::reset(); } }; -using ServiceLocatorDeathTest = ServiceLocator; +using LocatorDeathTest = Locator; -TEST_F(ServiceLocator, ValueAndTheLike) { +TEST_F(Locator, ValueAndTheLike) { ASSERT_FALSE(entt::locator::has_value()); ASSERT_EQ(entt::locator::value_or(1).invoke(3), 4); ASSERT_TRUE(entt::locator::has_value()); ASSERT_EQ(entt::locator::value().invoke(9), 10); } -TEST_F(ServiceLocator, Emplace) { +TEST_F(Locator, Emplace) { ASSERT_FALSE(entt::locator::has_value()); ASSERT_EQ(entt::locator::emplace(5).invoke(1), 6); ASSERT_TRUE(entt::locator::has_value()); @@ -49,7 +49,7 @@ TEST_F(ServiceLocator, Emplace) { ASSERT_EQ(entt::locator::value().invoke(3), 8); } -TEST_F(ServiceLocator, ResetHandle) { +TEST_F(Locator, ResetHandle) { entt::locator::emplace(1); auto handle = entt::locator::handle(); @@ -66,7 +66,7 @@ TEST_F(ServiceLocator, ResetHandle) { ASSERT_EQ(entt::locator::value().invoke(3), 4); } -TEST_F(ServiceLocator, ElementWithDeleter) { +TEST_F(Locator, ElementWithDeleter) { derived_service service{1}; entt::locator::reset(&service, [&service](base_service *serv) { ASSERT_EQ(serv, &service); @@ -81,7 +81,7 @@ TEST_F(ServiceLocator, ElementWithDeleter) { ASSERT_EQ(service.invoke(1), 3); } -ENTT_DEBUG_TEST_F(ServiceLocatorDeathTest, UninitializedValue) { +ENTT_DEBUG_TEST_F(LocatorDeathTest, UninitializedValue) { ASSERT_EQ(entt::locator::value_or(1).invoke(1), 2); entt::locator::reset(); diff --git a/test/entt/stl/functional.cpp b/test/entt/stl/functional.cpp index 36a684985..e21a4c0f4 100644 --- a/test/entt/stl/functional.cpp +++ b/test/entt/stl/functional.cpp @@ -3,7 +3,7 @@ #include #include -TEST(Identity, Functionalities) { +TEST(Functional, Identity) { const entt::stl::identity identity; int value = 2; diff --git a/test/entt/stl/memory.cpp b/test/entt/stl/memory.cpp index 5d3578b01..c17be2410 100644 --- a/test/entt/stl/memory.cpp +++ b/test/entt/stl/memory.cpp @@ -2,7 +2,7 @@ #include #include -TEST(ToAddress, Functionalities) { +TEST(Memory, ToAddress) { const std::shared_ptr shared = std::make_shared(); auto *plain = &*shared;