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 )
87 std::map<KIID, EDA_ITEM*> itemMap;
88 m_board->FillItemMap( itemMap );
90 for(
const DRC_ITEM& item : violations )
96 BOOST_ERROR( wxString::Format(
97 "DRC starved thermal: %s, failed (violations found %d expected %d)",
test.first,
98 (
int) violations.size(),
test.second ) );
BOOST_CHECK_EQUAL(result, "25.4")