From 4aa40aba4c433fd7e426e23e5b02fd5e86d2678d Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 16 Jun 2022 09:01:01 +0200 Subject: [PATCH] build system: try to satisfy codecov requirements --- test/entt/core/type_traits.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/entt/core/type_traits.cpp b/test/entt/core/type_traits.cpp index a9743e736..bad851b62 100644 --- a/test/entt/core/type_traits.cpp +++ b/test/entt/core/type_traits.cpp @@ -32,7 +32,9 @@ struct clazz { bool quux; }; -void free_function(int, const double &) {} +int free_function(int, const double &) { + return 42; +} template struct multi_argument_operation { @@ -206,11 +208,13 @@ TEST(MemberClass, Functionalities) { } TEST(NthArgument, Functionalities) { - static_assert(std::is_same_v, int>); - static_assert(std::is_same_v, const double &>); + static_assert(std::is_same_v, int>); + static_assert(std::is_same_v, const double &>); static_assert(std::is_same_v, double>); static_assert(std::is_same_v, float>); static_assert(std::is_same_v, bool>); + + ASSERT_EQ(free_function(entt::nth_argument_t<0u, &free_function>{}, entt::nth_argument_t<1u, &free_function>{}), 42); } TEST(Tag, Functionalities) {