45 wxString brd_name( wxT(
"test_copper_graphics" ) );
51 std::vector<DRC_ITEM> violations;
65 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
66 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
71 violations.push_back( *aItem );
76 const int expected_err_cnt = 4;
81 if( violations.size() == expected_err_cnt )
93 std::map<KIID, EDA_ITEM*> itemMap;
94 m_board->FillItemMap( itemMap );
96 for(
const DRC_ITEM& item : violations )
99 BOOST_ERROR( wxString::Format(
"DRC copper graphics: %s\n"
100 "%d violations found (expected %d)\n"
103 (
int) violations.size(),
BOOST_CHECK_EQUAL(result, "25.4")