Make precision computation consistent with width

This commit is contained in:
Victor Zverovich committed 2022-05-11 06:34:51 -07:00
1 parent f63afd161f
commit 358f5a7e50
2 files changed
+11 -5

No files matched your search

+1
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) {