52 std::vector<std::pair<wxString, int>> tests = {
53 {
"test_starved_thermal", 2 },
54 {
"issue19090/issue19090", 0 },
58 for(
const std::pair<wxString, int>&
test : tests )
63 std::vector<DRC_ITEM> violations;
70 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
71 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
74 violations.push_back( *aItem );
79 if( violations.size() ==
test.second )
89 std::map<KIID, EDA_ITEM*> itemMap;
90 m_board->FillItemMap( itemMap );
92 for(
const DRC_ITEM& item : violations )
95 BOOST_ERROR( wxString::Format(
"DRC starved thermal: %s\n"
96 "%d violations found (expected %d)\n"
99 (
int) violations.size(),
BOOST_CHECK_EQUAL(result, "25.4")