KiCad PCB EDA Suite
|
Test suite for ARRAY_AXIS. More...
Go to the source code of this file.
Classes | |
struct | VALID_OFFSET_CASE |
Declare the test suite. More... | |
struct | ARRAY_AXIS_NAMING_PARAMS |
Data for testing a single array axis. More... | |
struct | ARRAY_AXIS_NAMING_CASE |
Functions | |
BOOST_AUTO_TEST_CASE (ValidOffsets) | |
Check we can get valid (or invalid) offsets as expected. | |
BOOST_AUTO_TEST_CASE (Numbering) | |
Test of the naming cases. | |
Variables | |
static const std::vector< ARRAY_AXIS_NAMING_CASE > | axis_name_cases |
Test suite for ARRAY_AXIS.
Definition in file test_array_axis.cpp.
BOOST_AUTO_TEST_CASE | ( | Numbering | ) |
Test of the naming cases.
Definition at line 196 of file test_array_axis.cpp.
References axis_name_cases, ARRAY_AXIS::GetItemNumber(), ARRAY_AXIS::SetAxisType(), ARRAY_AXIS::SetOffset(), and ARRAY_AXIS::SetStep().
BOOST_AUTO_TEST_CASE | ( | ValidOffsets | ) |
Check we can get valid (or invalid) offsets as expected.
Definition at line 50 of file test_array_axis.cpp.
References ARRAY_AXIS::GetOffset(), ARRAY_AXIS::NUMBERING_ALPHA_FULL, ARRAY_AXIS::NUMBERING_HEX, ARRAY_AXIS::NUMBERING_NUMERIC, ARRAY_AXIS::SetAxisType(), and ARRAY_AXIS::SetOffset().
|
static |
Definition at line 147 of file test_array_axis.cpp.
Referenced by BOOST_AUTO_TEST_CASE().