48 std::vector<std::pair<wxString, int>> tests =
50 {
"multinetclasses_drc", 2 }
53 for(
const std::pair<wxString, int>&
test : tests )
58 std::vector<DRC_ITEM> violations;
77 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
78 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
81 violations.push_back( *aItem );
86 if( violations.size() ==
test.second )
95 std::map<KIID, EDA_ITEM*> itemMap;
96 m_board->FillItemMap( itemMap );
98 for(
const DRC_ITEM& item : violations )
104 BOOST_ERROR( wxString::Format(
"DRC multi netclasses: %s, failed (violations found %d expected %d)",
105 test.first, (
int)violations.size(),
test.second ) );
BOOST_CHECK_EQUAL(result, "25.4")