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