diff --git a/test/test.cpp b/test/test.cpp index 2259b0f..e1b87c1 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -471,16 +471,15 @@ TEST_CASE("enum_traits") { } TEST_CASE("extrema") { - enum class BadColor : uint64_t - { + enum class BadColor : std::uint64_t { RED, GREEN, YELLOW, // The value NONE is ignored (out of range). - // However, it affects the value of min_v. When reflected_min_v was incorrect, the - // presence of NONE caused miv_v to be equal to -1, which was then cast to unsigned, + // However, it affects the value of min_v. When reflected_min_v was incorrect, + // the presence of NONE caused miv_v to be equal to -1, which was then cast to unsigned, // leading to a value of 18446744073709551615 (numeric_limit_max of uint64_t). - NONE = std::numeric_limits::max(), + NONE = std::numeric_limits::max(), }; SECTION("min") { @@ -499,20 +498,20 @@ TEST_CASE("extrema") { TEST_CASE("mixed_sign_less") { using magic_enum::detail::mixed_sign_less; - constexpr uint64_t uint64_t_min = std::numeric_limits::min(); - constexpr uint32_t uint32_t_min = std::numeric_limits::min(); - constexpr uint32_t uint32_t_max = std::numeric_limits::max(); - constexpr uint64_t uint64_t_max = std::numeric_limits::max(); + constexpr std::uint64_t uint64_t_min = std::numeric_limits::min(); + constexpr std::uint32_t uint32_t_min = std::numeric_limits::min(); + constexpr std::uint32_t uint32_t_max = std::numeric_limits::max(); + constexpr std::uint64_t uint64_t_max = std::numeric_limits::max(); - constexpr int64_t int64_t_min = std::numeric_limits::min(); - constexpr int32_t int32_t_min = std::numeric_limits::min(); - constexpr int32_t int32_t_max = std::numeric_limits::max(); - constexpr int64_t int64_t_max = std::numeric_limits::max(); + constexpr std::int64_t int64_t_min = std::numeric_limits::min(); + constexpr std::int32_t int32_t_min = std::numeric_limits::min(); + constexpr std::int32_t int32_t_max = std::numeric_limits::max(); + constexpr std::int64_t int64_t_max = std::numeric_limits::max(); // Also testing with offset to avoid corner cases. // Two variables to avoid hidden casts: - constexpr int64_t offset_int64_t = 17; - constexpr int32_t offset_int32_t = 17; + constexpr std::int64_t offset_int64_t = 17; + constexpr std::int32_t offset_int32_t = 17; SECTION("same signedness") { REQUIRE(mixed_sign_less(-5, -3));