mirror of
https://github.com/fmtlib/fmt.git
synced 2026-05-03 19:30:47 +02:00
Test invalid fill
This commit is contained in:
@@ -816,6 +816,8 @@ TEST(FormatterTest, Fill) {
|
||||
EXPECT_EQ("foo=", format("{:}=", "foo"));
|
||||
EXPECT_EQ(std::string("\0\0\0*", 4), format(string_view("{:\0>4}", 6), '*'));
|
||||
EXPECT_EQ("жж42", format("{0:ж>4}", 42));
|
||||
EXPECT_THROW_MSG(format("{:\x80\x80\x80\x80\x80>}", 0), format_error,
|
||||
"invalid fill");
|
||||
}
|
||||
|
||||
TEST(FormatterTest, PlusSign) {
|
||||
|
||||
Reference in New Issue
Block a user