|
KiCad PCB EDA Suite
|
Test suite for meander corner radius constraints (issue #8629). More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <boost/test/unit_test.hpp>#include <router/pns_meander.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (DefaultSettings) | |
| Test that MEANDER_SETTINGS has correct defaults for corner style. | |
| BOOST_AUTO_TEST_CASE (MinCornerRadiusThreshold) | |
| Test minimum corner radius threshold relative to track width. | |
| BOOST_AUTO_TEST_CASE (GeometricConstraints) | |
| Test that corner radius requirements are geometrically consistent. | |
Test suite for meander corner radius constraints (issue #8629).
This verifies that meanders maintain visibly rounded corners and do not degenerate to nearly-square shapes when space is constrained.
Definition in file test_meander_corner_radius.cpp.
| BOOST_AUTO_TEST_CASE | ( | DefaultSettings | ) |
Test that MEANDER_SETTINGS has correct defaults for corner style.
Definition at line 42 of file test_meander_corner_radius.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), PNS::MEANDER_SETTINGS::m_cornerRadiusPercentage, PNS::MEANDER_SETTINGS::m_cornerStyle, PNS::MEANDER_SETTINGS::m_minAmplitude, PNS::MEANDER_SETTINGS::m_spacing, and PNS::MEANDER_STYLE_ROUND.
| BOOST_AUTO_TEST_CASE | ( | GeometricConstraints | ) |
Test that corner radius requirements are geometrically consistent.
For a meander with round corners, the corner radius is limited by:
If the minimum corner radius (width/2) exceeds these limits, the meander configuration should be rejected.
Definition at line 97 of file test_meander_corner_radius.cpp.
References BOOST_CHECK_EQUAL(), and BOOST_TEST_MESSAGE().
| BOOST_AUTO_TEST_CASE | ( | MinCornerRadiusThreshold | ) |
Test minimum corner radius threshold relative to track width.
For issue #8629, the fix ensures that meanders with corner radii less than half the track width are rejected. This test verifies the relationship between track width and acceptable corner radius.
Definition at line 66 of file test_meander_corner_radius.cpp.
References BOOST_TEST_MESSAGE().