KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_board_design_settings.cpp File Reference

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.
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

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().