From a1c218b2e78896dbe488fd094fde21c9d1d055f9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 29 Oct 2025 15:45:01 +0100 Subject: Add some extra details to a test. --- test/util_test.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') 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) ); }; -- cgit v1.2.3