Fix a libc++ warning and move the test to the right place

This commit is contained in:
Victor Zverovich
2023-11-25 07:58:27 -08:00
parent c3f9a73445
commit c4283ec471
3 changed files with 10 additions and 19 deletions

View File

@@ -246,13 +246,6 @@ TEST(format_impl_test, format_error_code) {
}
}
TEST(format_impl_test, compute_width) {
EXPECT_EQ(4,
fmt::detail::compute_width(
fmt::basic_string_view<fmt::detail::char8_type>(
reinterpret_cast<const fmt::detail::char8_type*>("ёжик"))));
}
// Tests fmt::detail::count_digits for integer type Int.
template <typename Int> void test_count_digits() {
for (Int i = 0; i < 10; ++i) EXPECT_EQ(1u, fmt::detail::count_digits(i));