Print format string on failure.

This commit is contained in:
Victor Zverovich 2014-07-30 10:59:23 -07:00
parent f4156b57f0
commit e2f0408b69

View File

@ -45,7 +45,8 @@ std::string make_positional(fmt::StringRef format) {
}
#define EXPECT_PRINTF(expected_output, format, arg) \
EXPECT_EQ(expected_output, fmt::sprintf(format, arg)); \
EXPECT_EQ(expected_output, fmt::sprintf(format, arg)) \
<< "format:" << format; \
EXPECT_EQ(expected_output, fmt::sprintf(make_positional(format), arg))
TEST(PrintfTest, NoArgs) {