FMT_NUMERIC_ALIGN -> FMT_DEPRECATED_NUMERIC_ALIGN

This commit is contained in:
Victor Zverovich
2020-07-03 08:30:05 -07:00
parent 56e63078ff
commit 56fed78149
3 changed files with 7 additions and 7 deletions

View File

@@ -96,7 +96,7 @@ TEST(OStreamTest, Format) {
TEST(OStreamTest, FormatSpecs) {
EXPECT_EQ("def ", format("{0:<5}", TestString("def")));
EXPECT_EQ(" def", format("{0:>5}", TestString("def")));
#if FMT_NUMERIC_ALIGN
#if FMT_DEPRECATED_NUMERIC_ALIGN
EXPECT_THROW_MSG(format("{0:=5}", TestString("def")), format_error,
"format specifier requires numeric argument");
#endif