![]() |
KiCad PCB EDA Suite
|
Test suite for LIB_ARC. More...
#include <unit_test_utils/unit_test_utils.h>
#include <trigo.h>
#include <convert_to_biu.h>
#include <lib_arc.h>
Go to the source code of this file.
Classes | |
class | TEST_LIB_ARC_FIXTURE |
Functions | |
BOOST_AUTO_TEST_CASE (DefaultProperties) | |
Declare the test suite. More... | |
BOOST_AUTO_TEST_CASE (TestCalcRadiusAngles) | |
Test the function that calculates the radius angles based on the center, start, and end points. More... | |
BOOST_AUTO_TEST_CASE (TestCalcMidPoint) | |
Test the function that calculates the mid point based on the start and end angles and radius length. More... | |
Test suite for LIB_ARC.
Definition in file test_lib_arc.cpp.
BOOST_AUTO_TEST_CASE | ( | DefaultProperties | ) |
Declare the test suite.
Check that we can get the default properties out as expected
Definition at line 58 of file test_lib_arc.cpp.
References LIB_ARC_T.
BOOST_AUTO_TEST_CASE | ( | TestCalcRadiusAngles | ) |
Test the function that calculates the radius angles based on the center, start, and end points.
Definition at line 69 of file test_lib_arc.cpp.
References DEG2RAD(), and Millimeter2iu().
BOOST_AUTO_TEST_CASE | ( | TestCalcMidPoint | ) |
Test the function that calculates the mid point based on the start and end angles and radius length.
Definition at line 98 of file test_lib_arc.cpp.
References Millimeter2iu().