From 340dc8fa5be06ed909fe54bc4ca135921dc70cae Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 30 Jun 2024 12:30:48 +0100 Subject: Maintain a reverse index in instance vertices Removes need to search unused and/or index when moving/adding things --- test/testHelpers.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/testHelpers.h') diff --git a/test/testHelpers.h b/test/testHelpers.h index c9fd6dc..a261b3d 100644 --- a/test/testHelpers.h +++ b/test/testHelpers.h @@ -51,3 +51,11 @@ loadFixtureJson(const std::filesystem::path & path) BOOST_CHECK(VAR); \ } \ else + +#define BOOST_CHECK_EQUAL_COLCOL(cola_, colb_) \ + BOOST_CHECK_EQUAL_COLLECTIONS(cola_.begin(), cola_.end(), colb_.begin(), colb_.end()) +#define BOOST_CHECK_EQUAL_COLVALS(col_, ...) \ + { \ + const std::initializer_list vals {__VA_ARGS__}; \ + BOOST_CHECK_EQUAL_COLLECTIONS(col_.begin(), col_.end(), vals.begin(), vals.end()); \ + } -- cgit v1.2.3