54 std::vector<std::pair<wxString, int>> tests = {
55 {
"test_starved_thermal", 2 },
56 {
"issue19090/issue19090", 0 },
60 for(
const std::pair<wxString, int>&
test : tests )
65 std::vector<DRC_ITEM> violations;
72 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
73 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
76 violations.push_back( *aItem );
81 if( violations.size() ==
test.second )
91 std::map<KIID, EDA_ITEM*> itemMap;
92 m_board->FillItemMap( itemMap );
94 for(
const DRC_ITEM& item : violations )
97 BOOST_ERROR( wxString::Format(
"DRC starved thermal: %s\n"
98 "%d violations found (expected %d)\n"
101 (
int) violations.size(),
BOOST_CHECK_EQUAL(result, "25.4")