mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-25 11:49:52 +01:00
error on bool arg w/ char pres_type (#3734)
This commit is contained in:
@@ -1159,6 +1159,8 @@ TEST(format_test, format_bool) {
|
||||
EXPECT_EQ("true", fmt::format("{:s}", true));
|
||||
EXPECT_EQ("false", fmt::format("{:s}", false));
|
||||
EXPECT_EQ("false ", fmt::format("{:6s}", false));
|
||||
EXPECT_THROW_MSG((void)fmt::format(runtime("{:c}"), false), format_error,
|
||||
"invalid format specifier");
|
||||
}
|
||||
|
||||
TEST(format_test, format_short) {
|
||||
|
||||
Reference in New Issue
Block a user