Fix handling of numeric alignment with no width (#675)
This commit is contained in:
1 parent
9facc119a6
commit
7db0e94b9e
2 files changed
+3
-1
No files matched your search
@@ -532,6 +532,7 @@ TEST(FormatterTest, NumericAlign) {
|
||||
format_error, "format specifier requires numeric argument");
|
||||
EXPECT_THROW_MSG(format("{0:=8}", reinterpret_cast<void*>(0xface)),
|
||||
format_error, "format specifier requires numeric argument");
|
||||
EXPECT_EQ(" 1", fmt::format("{:= }", 1.0));
|
||||
}
|
||||
|
||||
TEST(FormatterTest, CenterAlign) {
|
||||
|
||||
Reference in new issue
Block a user