Make the n specifier an opt-in

This commit is contained in:
Victor Zverovich
2020-07-03 07:27:22 -07:00
parent 31ce6bc702
commit 56e63078ff
4 changed files with 22 additions and 19 deletions
+1 -2
View File
@@ -1223,7 +1223,6 @@ TEST(FormatterTest, FormatOct) {
}
TEST(FormatterTest, FormatIntLocale) {
EXPECT_EQ("1234", format("{:n}", 1234));
EXPECT_EQ("1234", format("{:L}", 1234));
}
@@ -1320,7 +1319,7 @@ TEST(FormatterTest, FormatLongDouble) {
}
TEST(FormatterTest, FormatChar) {
const char types[] = "cbBdoxXnL";
const char types[] = "cbBdoxXL";
check_unknown_types('a', types, "char");
EXPECT_EQ("a", format("{0}", 'a'));
EXPECT_EQ("z", format("{0:c}", 'z'));