Improve width estimation (#2033)

This commit is contained in:
Victor Zverovich
2021-02-13 09:24:39 -08:00
parent 13b117b5bc
commit 7e72673d87
3 changed files with 25 additions and 3 deletions

View File

@@ -253,7 +253,7 @@ TEST(CompileTimeFormattingTest, String) {
test_format<17>(FMT_COMPILE("{} is {}"), "The answer", "42"));
EXPECT_EQ("abc**", test_format<6>(FMT_COMPILE("{:*<5}"), "abc"));
EXPECT_EQ("**🤡**", test_format<9>(FMT_COMPILE("{:*^5}"), "🤡"));
EXPECT_EQ("**🤡**", test_format<9>(FMT_COMPILE("{:*^6}"), "🤡"));
}
TEST(CompileTimeFormattingTest, Combination) {