Fix locale tests on FreeBSD

This commit is contained in:
Victor Zverovich
2024-09-03 12:50:03 -07:00
parent 894b71da85
commit 79e5ae919c
2 changed files with 4 additions and 6 deletions

View File

@@ -567,11 +567,9 @@ TEST(locale_test, chrono_weekday) {
auto sat = fmt::weekday(6);
EXPECT_EQ(fmt::format(L"{}", sat), L"Sat");
if (loc != std::locale::classic()) {
// L'\xE1' is 'á'.
auto saturdays = std::vector<std::wstring>{
L"s\xE1"
"b",
L"s\xE1."};
// L'\341' is 'á'.
auto saturdays =
std::vector<std::wstring>{L"s\341b", L"s\341.", L"s\341b."};
EXPECT_THAT(saturdays, Contains(fmt::format(loc, L"{:L}", sat)));
}
std::locale::global(loc_old);