91 BOOST_REQUIRE_MESSAGE( m_board,
"Failed to load board issue24340" );
95 std::shared_ptr<DRC_ITEM> item;
99 std::vector<Violation> annularViolations;
102 BOOST_REQUIRE_MESSAGE( bds.
m_DRCEngine,
"DRC engine not initialized" );
110 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int ,
114 annularViolations.push_back( { aItem, aPos } );
121 BOOST_TEST_MESSAGE( wxString::Format(
"Annular violations: %d", (
int) annularViolations.size() ) );
129 int onBugFootprint = 0;
130 int onControlFootprint = 0;
132 for(
const Violation& v : annularViolations )
136 else if(
std::abs( v.pos.x - controlPos.
x ) < tol &&
std::abs( v.pos.y - controlPos.
y ) < tol )
137 ++onControlFootprint;
BOOST_CHECK_EQUAL(result, "25.4")