KiCad PCB EDA Suite
|
Go to the source code of this file.
Classes | |
struct | OvalFixture |
struct | OVAL_POINTS_TEST_CASE |
Functions | |
template<typename T > | |
void | CHECK_COLLECTIONS_SAME_UNORDERED (const T &expected, const T &actual) |
Check that two collections contain the same elements, ignoring order. More... | |
void | DoOvalPointTestChecks (const OVAL_POINTS_TEST_CASE &testcase) |
BOOST_AUTO_TEST_CASE (SimpleOvalVertical) | |
BOOST_AUTO_TEST_CASE (SimpleOvalHorizontal) | |
BOOST_AUTO_TEST_CASE (SimpleOval45Degrees) | |
BOOST_AUTO_TEST_CASE | ( | SimpleOval45Degrees | ) |
Definition at line 138 of file test_oval.cpp.
References DEGREES_T, and DoOvalPointTestChecks().
BOOST_AUTO_TEST_CASE | ( | SimpleOvalHorizontal | ) |
Definition at line 111 of file test_oval.cpp.
References DEGREES_T, and DoOvalPointTestChecks().
BOOST_AUTO_TEST_CASE | ( | SimpleOvalVertical | ) |
Definition at line 84 of file test_oval.cpp.
References DEGREES_T, and DoOvalPointTestChecks().
void CHECK_COLLECTIONS_SAME_UNORDERED | ( | const T & | expected, |
const T & | actual | ||
) |
Check that two collections contain the same elements, ignoring order.
I.e. expected contains everything in actual and vice versa.
The collections lengths are also checked to weed out unexpected duplicates.
expected | a collection of expected elements |
actual | a collection of actual elements |
Definition at line 41 of file test_oval.cpp.
References expected.
Referenced by DoOvalPointTestChecks().
void DoOvalPointTestChecks | ( | const OVAL_POINTS_TEST_CASE & | testcase | ) |
Definition at line 71 of file test_oval.cpp.
References CHECK_COLLECTIONS_SAME_UNORDERED(), GetOvalKeyPoints(), OVAL_POINTS_TEST_CASE::m_expected_points, OVAL_POINTS_TEST_CASE::m_rotation, OVAL_POINTS_TEST_CASE::m_size, and OVAL_ALL_KEY_POINTS.
Referenced by BOOST_AUTO_TEST_CASE().