diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-02-10 00:41:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-02-10 00:41:39 +0100 |
| commit | 06a33b6d5114e4b9c76c2b98c3a6936fb9a4208a (patch) | |
| tree | 167057c9abdc6debf2c691b11a72c6dc55d38f65 /test/test.cc | |
| parent | fe36f02b81d740bedfe04c08027748735e2bf1ba (diff) | |
Improve test failure message.
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc index 0f9505794..b15401602 100644 --- a/test/test.cc +++ b/test/test.cc @@ -617,7 +617,10 @@ check_xml( auto test_cn = dynamic_cast<xmlpp::ContentNode*>(*l); BOOST_CHECK ((ref_cn && test_cn) || (!ref_cn && !test_cn)); if (ref_cn && test_cn) { - BOOST_CHECK_EQUAL (ref_cn->get_content(), test_cn->get_content ()); + BOOST_CHECK_MESSAGE( + ref_cn->get_content() == test_cn->get_content(), + ref_cn->get_content() << " != " << test_cn->get_content() << "\n" << context + ); } ++k; |
