summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-29 15:45:01 +0100
committerCarl Hetherington <cth@carlh.net>2025-10-30 00:11:49 +0100
commita1c218b2e78896dbe488fd094fde21c9d1d055f9 (patch)
treec58e793809c9506e211675a6630d200eaa564ed3 /test
parentbcc9e32cd3c886fbe02f1b2573bd19ca9ec340dc (diff)
Add some extra details to a test.
Diffstat (limited to 'test')
-rw-r--r--test/util_test.cc5
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)
);
};