From 3e866abeee4de737a04719ff8ab6c6bf46bb4d74 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 27 May 2021 11:44:21 +0200 Subject: Sort notes when checking verifications. So that the lists in the tests don't have to be in the right order. --- test/verify_test.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/verify_test.cc') diff --git a/test/verify_test.cc b/test/verify_test.cc index 42da7005..417b4563 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -211,6 +211,8 @@ check_verify_result (vector dir, vector test_notes) { auto notes = dcp::verify ({dir}, &stage, &progress, xsd_test); BOOST_REQUIRE_EQUAL (notes.size(), test_notes.size()); + std::sort (notes.begin(), notes.end()); + std::sort (test_notes.begin(), test_notes.end()); for (auto i = 0U; i < notes.size(); ++i) { BOOST_REQUIRE_EQUAL (notes[i], test_notes[i]); } -- cgit v1.2.3