|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <board.h>#include <board_design_settings.h>#include <settings/settings_manager.h>#include <pcbnew_utils/board_test_utils.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (NegativeSilkClearanceRoundTrip) | |
| Regression test for https://gitlab.com/kicad/code/kicad/-/issues/23327. | |
| BOOST_AUTO_TEST_CASE | ( | NegativeSilkClearanceRoundTrip | ) |
Regression test for https://gitlab.com/kicad/code/kicad/-/issues/23327.
Negative silk clearance values must survive a save/load round-trip through the project settings JSON. Previously the PARAM_SCALED lower bound was 0, causing negative values to be reset to the default on load.
Definition at line 56 of file test_board_design_settings.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), JSON_SETTINGS::Load(), BOARD_DESIGN_SETTINGS::m_SilkClearance, pcbIUScale, and JSON_SETTINGS::Store().