51 std::vector<std::pair<wxString, int>> tests =
54 {
"connection_width_rules", 3 },
59 for(
const std::pair<wxString, int>&
test : tests )
64 std::vector<DRC_ITEM> violations;
83 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
84 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
87 violations.push_back( *aItem );
92 if( violations.size() ==
test.second )
101 std::map<KIID, EDA_ITEM*> itemMap;
102 m_board->FillItemMap( itemMap );
104 for(
const DRC_ITEM& item : violations )
110 BOOST_ERROR( wxString::Format(
"DRC connection width: %s, failed (violations found %d expected %d)",
111 test.first, (
int)violations.size(),
test.second ) );
BOOST_CHECK_EQUAL(result, "25.4")