50 std::vector<std::pair<wxString, int>> tests =
53 {
"connection_width_rules", 3 },
58 for(
const std::pair<wxString, int>&
test : tests )
63 std::vector<DRC_ITEM> violations;
82 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
83 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
86 violations.push_back( *aItem );
91 if( violations.size() ==
test.second )
100 std::map<KIID, EDA_ITEM*> itemMap;
101 m_board->FillItemMap( itemMap );
103 for(
const DRC_ITEM& item : violations )
109 BOOST_ERROR( wxString::Format(
"DRC connection width: %s, failed (violations found %d expected %d)",
110 test.first, (
int)violations.size(),
test.second ) );
BOOST_CHECK_EQUAL(result, "25.4")