Minor cleanup

This commit is contained in:
Victor Zverovich
2024-01-10 16:43:00 -08:00
parent 6159e2b0ab
commit 971f7ae768
5 changed files with 15 additions and 27 deletions

View File

@@ -550,10 +550,11 @@ TEST(printf_test, fixed_large_exponent) {
}
TEST(printf_test, make_printf_args) {
int n = 42;
EXPECT_EQ("[42] something happened",
fmt::vsprintf(fmt::string_view("[%d] %s happened"),
{fmt::make_printf_args(42, "something")}));
{fmt::make_printf_args(n, "something")}));
EXPECT_EQ(L"[42] something happened",
fmt::vsprintf(fmt::basic_string_view<wchar_t>(L"[%d] %s happened"),
{fmt::make_wprintf_args(42, L"something")}));
{fmt::make_printf_args<wchar_t>(n, L"something")}));
}