Refactor precision parsing

This commit is contained in:
Victor Zverovich
2022-12-24 13:29:23 -08:00
parent fc96938345
commit 934c8e5f76
5 changed files with 126 additions and 152 deletions
+2 -2
View File
@@ -929,9 +929,9 @@ TEST(format_test, precision) {
"number is too big");
EXPECT_THROW_MSG((void)fmt::format(runtime("{0:."), 0), format_error,
"missing precision specifier");
"missing precision");
EXPECT_THROW_MSG((void)fmt::format(runtime("{0:.}"), 0), format_error,
"missing precision specifier");
"missing precision");
EXPECT_THROW_MSG((void)fmt::format(runtime("{0:.2"), 0), format_error,
"precision not allowed for this argument type");