48 std::vector<std::pair<wxString, int>> tests = { {
"drc_missing_tuning_profile", 2 } };
50 for(
const std::pair<wxString, int>&
test : tests )
55 std::vector<DRC_ITEM> violations;
68 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
69 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
72 violations.push_back( *aItem );
77 if( violations.size() ==
test.second )
86 std::map<KIID, EDA_ITEM*> itemMap;
87 m_board->FillItemMap( itemMap );
89 for(
const DRC_ITEM& item : violations )
94 BOOST_ERROR( wxString::Format(
"DRC missing tuning profile: %s, failed (violations found %d expected %d)",
95 test.first, (
int) violations.size(),
test.second ) );
BOOST_CHECK_EQUAL(result, "25.4")