Simplify fill and alignment parsing

This commit is contained in:
Victor Zverovich
2022-12-23 10:52:56 -08:00
parent 040dc2a5d4
commit bde1a6070d
4 changed files with 31 additions and 23 deletions
-1
View File
@@ -2214,7 +2214,6 @@ TEST(format_test, format_string_errors) {
EXPECT_ERROR("{0:s", "unknown format specifier", date);
# if !FMT_MSC_VERSION || FMT_MSC_VERSION >= 1916
// This causes an detail compiler error in MSVC2017.
EXPECT_ERROR("{:{<}", "invalid fill character '{'", int);
EXPECT_ERROR("{:10000000000}", "number is too big", int);
EXPECT_ERROR("{:.10000000000}", "number is too big", int);
EXPECT_ERROR_NOARGS("{:x}", "argument not found");