mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Cleanup argument construction
This commit is contained in:
@ -146,14 +146,9 @@ TEST(xchar_test, format_to) {
|
||||
}
|
||||
|
||||
TEST(xchar_test, vformat_to) {
|
||||
using wcontext = fmt::wformat_context;
|
||||
fmt::basic_format_arg<wcontext> warg = fmt::detail::make_arg<wcontext>(42);
|
||||
auto wargs = fmt::basic_format_args<wcontext>(&warg, 1);
|
||||
auto args = fmt::make_wformat_args(42);
|
||||
auto w = std::wstring();
|
||||
fmt::vformat_to(std::back_inserter(w), L"{}", wargs);
|
||||
EXPECT_EQ(L"42", w);
|
||||
w.clear();
|
||||
fmt::vformat_to(std::back_inserter(w), FMT_STRING(L"{}"), wargs);
|
||||
fmt::vformat_to(std::back_inserter(w), L"{}", args);
|
||||
EXPECT_EQ(L"42", w);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user