Test invalid fill

This commit is contained in:
Victor Zverovich
2020-01-19 15:57:11 -08:00
parent 8a3a8177d6
commit b4218aa0f8
2 changed files with 8 additions and 9 deletions
+2
View File
@@ -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) {