diff options
| -rw-r--r-- | test/util_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/util_test.cc b/test/util_test.cc index 3431d1856..7f1e3ea40 100644 --- a/test/util_test.cc +++ b/test/util_test.cc @@ -198,9 +198,10 @@ BOOST_AUTO_TEST_CASE(rfc_2822_date_test) auto check_allowing_dst = [hours, tz](int day_index, string format) { auto test = rfc_2822_date(day_index * day); - BOOST_CHECK( + BOOST_CHECK_MESSAGE( test == fmt::format(format, hours, tz) || - test == fmt::format(format, hours - 1, tz) + test == fmt::format(format, hours - 1, tz), + test << " did not match " << fmt::format(format, hours, tz) << " or " << fmt::format(format, hours - 1, tz) ); }; |
