Make precision computation consistent with width

This commit is contained in:
Victor Zverovich
2022-05-11 06:34:51 -07:00
parent f63afd161f
commit 358f5a7e50
2 changed files with 11 additions and 5 deletions

View File

@@ -1035,6 +1035,7 @@ TEST(format_test, precision) {
format_error, "number is too big");
EXPECT_EQ("st", fmt::format("{0:.2}", "str"));
EXPECT_EQ("вожык", fmt::format("{0:.5}", "вожыкі"));
}
TEST(format_test, runtime_precision) {