changed VPrintf testcase to use fmt::printf_context
This commit is contained in:
parent
57842660b6
commit
724e3eafd4
@ -501,9 +501,8 @@ TEST(PrintfTest, OStream) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST(PrintfTest, VPrintf) {
|
TEST(PrintfTest, VPrintf) {
|
||||||
typedef fmt::basic_printf_context_t<fmt::internal::buffer>::type context;
|
fmt::format_arg_store<fmt::printf_context, int> as{42};
|
||||||
fmt::format_arg_store<context, int> as{42};
|
fmt::basic_format_args<fmt::printf_context> args( as );
|
||||||
fmt::basic_format_args<context> args(as);
|
|
||||||
EXPECT_EQ(fmt::vsprintf("%d", args), "42");
|
EXPECT_EQ(fmt::vsprintf("%d", args), "42");
|
||||||
EXPECT_WRITE(stdout, fmt::vprintf("%d", args), "42");
|
EXPECT_WRITE(stdout, fmt::vprintf("%d", args), "42");
|
||||||
EXPECT_WRITE(stdout, fmt::vfprintf(stdout, "%d", args), "42");
|
EXPECT_WRITE(stdout, fmt::vfprintf(stdout, "%d", args), "42");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user