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")}));
}

View File

@@ -596,8 +596,8 @@ TEST(ranges_test, format_as_tie) {
struct lvalue_qualified_begin_end {
int arr[5] = {1, 2, 3, 4, 5};
int const* begin() & { return arr; }
int const* end() & { return arr + 5; }
auto begin() & -> const int* { return arr; }
auto end() & -> const int* { return arr + 5; }
};
TEST(ranges_test, lvalue_qualified_begin_end) {