24#include <boost/test/unit_test.hpp>
45 BOOST_CHECK_MESSAGE( std::find( actual.begin(), actual.end(), p ) != actual.end(),
46 "Expected item not found: " << p );
49 for(
const auto& p : actual )
52 "Unexpected item: " << p );
55 BOOST_CHECK_EQUAL(
expected.size(), actual.size() );
73 const auto sort_vectors_x_then_y = [](
const VECTOR2I& a,
const VECTOR2I& b ) {
74 return LexicographicalCompare<VECTOR2I::coord_type>( a, b ) > 0;
78 std::vector<VECTOR2I> actual_points =
167 { -1061 - 500, 1061 },
168 { -1061, 1061 + 500 },
169 { 1061 + 500, -1061 },
170 { 1061, -1061 - 500 },
177BOOST_AUTO_TEST_SUITE_END()
std::vector< VECTOR2I > GetOvalKeyPoints(const VECTOR2I &aOvalSize, const EDA_ANGLE &aRotation, OVAL_KEY_POINT_FLAGS aFlags)
Get a list of interesting points on an oval (rectangle with semicircular end caps)
std::vector< VECTOR2I > m_expected_points
VECTOR3I expected(15, 30, 45)
void CHECK_COLLECTIONS_SAME_UNORDERED(const T &expected, const T &actual)
Check that two collections contain the same elements, ignoring order.
BOOST_AUTO_TEST_CASE(SimpleOvalVertical)
void DoOvalPointTestChecks(const OVAL_POINTS_TEST_CASE &testcase)