46 std::vector<std::pair<wxString, int>> tests = { {
"drc_missing_tuning_profile", 2 } };
48 for(
const std::pair<wxString, int>&
test : tests )
53 std::vector<DRC_ITEM> violations;
66 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
67 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
70 violations.push_back( *aItem );
75 if( violations.size() ==
test.second )
84 std::map<KIID, EDA_ITEM*> itemMap;
85 m_board->FillItemMap( itemMap );
87 for(
const DRC_ITEM& item : violations )
92 BOOST_ERROR( wxString::Format(
"DRC missing tuning profile: %s, failed (violations found %d expected %d)",
93 test.first, (
int) violations.size(),
test.second ) );
BOOST_CHECK_EQUAL(result, "25.4")