Skip to content

Commit

Permalink
fix locale test for month
Browse files Browse the repository at this point in the history
  • Loading branch information
zivshek committed Mar 30, 2024
1 parent e0718a2 commit 94def7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/chrono-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,8 @@ TEST(chrono_test, year_month_day) {
auto loc = get_locale("es_ES.UTF-8");
std::locale::global(loc);
if (loc != std::locale::classic()) {
EXPECT_EQ(fmt::format(loc, "{:L}", month), "ene.");
EXPECT_EQ(fmt::format(loc, "{:%b}", month), "ene.");
auto months = std::vector<std::string>{"ene.", "ene"};
EXPECT_THAT(months, Contains(fmt::format(loc, "{:L}", month)));
EXPECT_THAT(months, Contains(fmt::format(loc, "{:%b}", month)));
}
}

0 comments on commit 94def7a

Please sign in to comment.