Improve code point computation

This commit is contained in:
Victor Zverovich
2021-02-13 07:52:39 -08:00
parent ee0fed639c
commit 13b117b5bc
4 changed files with 139 additions and 129 deletions
+2 -2
View File
@@ -408,9 +408,9 @@ TEST(FormatTest, FormatErrorCode) {
}
}
TEST(FormatTest, CountCodePoints) {
TEST(FormatTest, ComputeWidth) {
EXPECT_EQ(4,
fmt::detail::count_code_points(
fmt::detail::compute_width(
fmt::basic_string_view<fmt::detail::char8_type>(
reinterpret_cast<const fmt::detail::char8_type*>("ёжик"))));
}