Fix StringMaker for time_point<system_clock> with non-default duration

Fixes #2685
This commit is contained in:
Martin Hořeňovský
2025-08-01 23:00:30 +02:00
parent fbfd13501c
commit 17fe5eaa5c
19 changed files with 101 additions and 21 deletions

View File

@@ -49,3 +49,9 @@ TEST_CASE("Stringifying std::chrono::time_point<Clock>", "[toString][chrono][!no
auto later2 = now2 + std::chrono::minutes(2);
REQUIRE(now2 != later2);
}
TEST_CASE( "system_clock timepoint with non-default duration", "[toString][chrono]" ) {
std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>
tp1, tp2;
CHECK( tp1 == tp2 );
}