#388 add comment on unit test failure (#442)

This commit is contained in:
Paul Dreik 2019-07-22 02:47:33 +02:00 committed by Howard Hinnant
parent 7ef1a55143
commit 6f0b645df1

View File

@ -45,6 +45,8 @@ test_a()
std::istringstream in{"Sun 2016-12-11"};
sys_days tp;
in >> parse("%A %F", tp);
// this may fail with libstdc++, see https://github.com/HowardHinnant/date/issues/388
// possible workaround: compile date.h with -DONLY_C_LOCALE=1
assert(!in.fail());
assert(!in.bad());
assert(!in.eof());