43 wxString brd_name( wxT(
"test_copper_graphics" ) );
49 std::vector<DRC_ITEM> violations;
63 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
64 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
69 violations.push_back( *aItem );
74 const int expected_err_cnt = 4;
79 if( violations.size() == expected_err_cnt )
91 std::map<KIID, EDA_ITEM*> itemMap;
92 m_board->FillItemMap( itemMap );
94 for(
const DRC_ITEM& item : violations )
97 BOOST_ERROR( wxString::Format(
"DRC copper graphics: %s\n"
98 "%d violations found (expected %d)\n"
101 (
int) violations.size(),
BOOST_CHECK_EQUAL(result, "25.4")