Skip to content

Commit b346262

Browse files
committed
Fix chrono test on linux
1 parent 71a601c commit b346262

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/chronotest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ using namespace std::chrono_literals;
88

99
TEST_CASE("ChronoTest.time_point_to_utc_string")
1010
{
11-
chrono::date_point date = 2017y / std::chrono::February / 1;
11+
auto date = chrono::date_point(2017y / std::chrono::February / 1);
1212

1313
CHECK("2017-02-01" == inf::chrono::to_string("%Y-%m-%d", date));
1414
}
1515

1616
TEST_CASE("ChronoTest.time_point_to_string_custom_format")
1717
{
18-
chrono::date_point date = 2017y / std::chrono::February / 1;
18+
auto date = chrono::date_point(2017y / std::chrono::February / 1);
1919

2020
CHECK("2017-02-01" == inf::chrono::to_string("%Y-%m-%d", date));
2121
CHECK("2017-01-02" == inf::chrono::to_string("%Y-%d-%m", date));

0 commit comments

Comments
 (0)