Use error handler to report errors

This commit is contained in:
Victor Zverovich
2017-11-19 07:36:01 -08:00
parent 5a32e64b05
commit c523dd584f
4 changed files with 14 additions and 28 deletions

View File

@@ -116,7 +116,7 @@ TEST(PrintfTest, InvalidArgIndex) {
format_error, "argument index out of range");
EXPECT_THROW_MSG(fmt::sprintf("%2$", 42),
format_error, "invalid format string");
format_error, "argument index out of range");
EXPECT_THROW_MSG(fmt::sprintf(format("%{}$d", BIG_NUM), 42),
format_error, "number is too big");
}