Add c specifier support to integral types (#1652)

This commit is contained in:
Victor Zverovich
2020-05-17 08:44:55 -07:00
parent 6b219a58db
commit 6d66de3805
2 changed files with 8 additions and 1 deletions

View File

@@ -1082,7 +1082,8 @@ TEST(FormatterTest, FormatShort) {
TEST(FormatterTest, FormatInt) {
EXPECT_THROW_MSG(format("{0:v", 42), format_error,
"missing '}' in format string");
check_unknown_types(42, "bBdoxXnL", "integer");
check_unknown_types(42, "bBdoxXnLc", "integer");
EXPECT_EQ("x", format("{:c}", static_cast<int>('x')));
}
TEST(FormatterTest, FormatBin) {