From d1616c08c253293ecb864ae0774927a1ec7b1b77 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 15 Dec 2022 23:51:21 +0100 Subject: Some more details when verification results fail. --- test/verify_test.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/verify_test.cc b/test/verify_test.cc index 981f8e24..02067cf3 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -304,10 +304,26 @@ check_verify_result (vector dir, vector test_notes) string message = "\nVerification notes from test:\n"; for (auto i: notes) { message += " " + note_to_string(i) + "\n"; + message += dcp::String::compose( + " [%1 %2 %3 %4 %5]\n", + static_cast(i.type()), + static_cast(i.code()), + i.note().get_value_or(""), + i.file().get_value_or(""), + i.line().get_value_or(0) + ); } message += "Expected:\n"; for (auto i: test_notes) { message += " " + note_to_string(i) + "\n"; + message += dcp::String::compose( + " [%1 %2 %3 %4 %5]\n", + static_cast(i.type()), + static_cast(i.code()), + i.note().get_value_or(""), + i.file().get_value_or(""), + i.line().get_value_or(0) + ); } BOOST_REQUIRE_MESSAGE (notes == test_notes, message); -- cgit v1.2.3