Skip to content

Commit

Permalink
test: use our std::chrono::days fallback instead of >=C++17 conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
intelfx committed Dec 2, 2023
1 parent 25a9bee commit 69f01fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/chrono-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,7 @@ TEST(chrono_test, format_default) {
fmt::format("{}", std::chrono::duration<int, std::exa>(42)));
EXPECT_EQ("42min", fmt::format("{}", std::chrono::minutes(42)));
EXPECT_EQ("42h", fmt::format("{}", std::chrono::hours(42)));
# if defined(__cpp_lib_chrono) && __cpp_lib_chrono >= 201907L
EXPECT_EQ("42d", fmt::format("{}", std::chrono::days(42)));
# endif
EXPECT_EQ("42d", fmt::format("{}", days(42)));
EXPECT_EQ(
"42[15]s",
fmt::format("{}", std::chrono::duration<int, std::ratio<15, 1>>(42)));
Expand Down

0 comments on commit 69f01fe

Please sign in to comment.