49 std::vector<std::pair<wxString, int>> tests = {
50 {
"length_calculations", 0 },
51 {
"time_calculations", 1 }
54 for(
const std::pair<wxString, int>&
test : tests )
59 std::vector<DRC_ITEM> violations;
79 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
80 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
83 violations.push_back( *aItem );
88 if( violations.size() ==
test.second )
97 std::map<KIID, EDA_ITEM*> itemMap;
98 m_board->FillItemMap( itemMap );
100 for(
const DRC_ITEM& item : violations )
105 BOOST_ERROR( wxString::Format(
"DRC skew: %s, failed (violations found %d expected %d)",
test.first,
106 (
int) violations.size(),
test.second ) );
BOOST_CHECK_EQUAL(result, "25.4")