52 std::vector<std::pair<wxString, int>> tests =
54 {
"orientation_drc", 1 },
57 for(
const std::pair<wxString, int>&
test : tests )
62 std::vector<DRC_ITEM> violations;
81 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
82 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
85 violations.push_back( *aItem );
90 if( violations.size() ==
test.second )
100 std::map<KIID, EDA_ITEM*> itemMap;
101 m_board->FillItemMap( itemMap );
103 for(
const DRC_ITEM& item : violations )
106 BOOST_ERROR( wxString::Format(
"DRC orientation: %s\n"
107 "%d violations found (expected %d)\n"
110 (
int) violations.size(),
BOOST_CHECK_EQUAL(result, "25.4")