52 std::vector<std::pair<wxString, int>> tests = {
53 {
"test_starved_thermal", 2 },
57 for(
const std::pair<wxString, int>&
test : tests )
62 std::vector<DRC_ITEM> violations;
69 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
70 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
73 violations.push_back( *aItem );
78 if( violations.size() ==
test.second )
88 std::map<KIID, EDA_ITEM*> itemMap;
89 m_board->FillItemMap( itemMap );
91 for(
const DRC_ITEM& item : violations )
94 BOOST_ERROR( wxString::Format(
"DRC starved thermal: %s\n"
95 "%d violations found (expected %d)\n"
98 (
int) violations.size(),
BOOST_CHECK_EQUAL(result, "25.4")