The test_format() function contained an incorrect assertion but wasn't
actually being called from main.
libstdc++-v3/ChangeLog:
* testsuite/std/time/clock/file/io.cc: Fix expected result in
assertion and call test_format() from main.
// PR libstdc++/113500
auto ft = clock_cast<file_clock>(sys_days(2024y/January/21)) + 0ms + 2.5s;
s = std::format("{}", ft);
- VERIFY( s == "2024-01-17 00:00:02.500");
+ VERIFY( s == "2024-01-21 00:00:02.500");
}
void
int main()
{
test_ostream();
+ test_format();
test_parse();
}