| 
    KiCad PCB EDA Suite
    
   | 
 
#include <qa_utils/wx_utils/unit_test_utils.h>#include <geometry/oval.h>#include "geom_test_utils.h"Go to the source code of this file.
Classes | |
| 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.   | |
| 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 140 of file test_oval.cpp.
References ANGLE_45, DoOvalPointTestChecks(), GetRotated(), PT_CENTER, PT_END, PT_MID, and PT_QUADRANT.
| BOOST_AUTO_TEST_CASE | ( | SimpleOvalHorizontal | ) | 
Definition at line 110 of file test_oval.cpp.
References DoOvalPointTestChecks(), PT_CENTER, PT_END, PT_MID, and PT_QUADRANT.
| BOOST_AUTO_TEST_CASE | ( | SimpleOvalVertical | ) | 
Definition at line 80 of file test_oval.cpp.
References DoOvalPointTestChecks(), PT_CENTER, PT_END, PT_MID, and PT_QUADRANT.
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 actual, BOOST_CHECK_EQUAL(), expected, and T.
Referenced by DoOvalPointTestChecks().
| void DoOvalPointTestChecks | ( | const OVAL_POINTS_TEST_CASE & | testcase | ) | 
Definition at line 66 of file test_oval.cpp.
References CHECK_COLLECTIONS_SAME_UNORDERED(), KIGEOM::GetOvalKeyPoints(), LexicographicalCompare(), OVAL_POINTS_TEST_CASE::m_expected_points, OVAL_POINTS_TEST_CASE::m_oval, and KIGEOM::OVAL_ALL_KEY_POINTS.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().