51 std::vector<std::pair<wxString, int>> tests =
53 {
"orientation_drc", 1 },
56 for(
const std::pair<wxString, int>&
test : tests )
61 std::vector<DRC_ITEM> violations;
80 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
81 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
84 violations.push_back( *aItem );
89 if( violations.size() ==
test.second )
98 std::map<KIID, EDA_ITEM*> itemMap;
99 m_board->FillItemMap( itemMap );
101 for(
const DRC_ITEM& item : violations )
107 BOOST_ERROR( wxString::Format(
"DRC orientation: %s, failed (violations found %d expected %d)",
108 test.first, (
int)violations.size(),
test.second ) );
BOOST_CHECK_EQUAL(result, "25.4")