44 std::vector<std::pair<wxString, int>> tests = { {
"drc_missing_tuning_profile", 2 } };
46 for(
const std::pair<wxString, int>&
test : tests )
51 std::vector<DRC_ITEM> violations;
64 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
65 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
68 violations.push_back( *aItem );
73 if( violations.size() ==
test.second )
82 std::map<KIID, EDA_ITEM*> itemMap;
83 m_board->FillItemMap( itemMap );
85 for(
const DRC_ITEM& item : violations )
90 BOOST_ERROR( wxString::Format(
"DRC missing tuning profile: %s, failed (violations found %d expected %d)",
91 test.first, (
int) violations.size(),
test.second ) );
BOOST_CHECK_EQUAL(result, "25.4")