mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fixed post-rebase error with unit parsing.
This commit is contained in:
parent
42eb1dbff1
commit
5f4cffd934
@ -60,11 +60,6 @@ public:
|
||||
virtual bool Run() override;
|
||||
|
||||
virtual const wxString GetName() const override { return wxT( "pad_fanout" ); };
|
||||
|
||||
virtual const wxString GetDescription() const override
|
||||
{
|
||||
return wxT( "Tests Fanout width from pads" );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -75,7 +70,7 @@ bool DRC_TEST_PROVIDER_FANOUT_CHECKS::Run()
|
||||
&& !m_drcEngine->HasRulesForConstraintType( FOOTPRINT_FANOUT_POINT_SYMMETRY_CONSTRAINT )
|
||||
&& !m_drcEngine->HasRulesForConstraintType( PAD_FANOUT_VIA_DISTANCE_CONSTRAINT ) )
|
||||
{
|
||||
reportAux( wxT( "No fanout constraints found. Tests not run." ) );
|
||||
REPORT_AUX( wxT( "No fanout constraints found. Tests not run." ) );
|
||||
return true; // continue with other tests
|
||||
}
|
||||
|
||||
@ -600,7 +595,6 @@ bool DRC_TEST_PROVIDER_FANOUT_CHECKS::Run()
|
||||
}
|
||||
}
|
||||
|
||||
reportRuleStatistics();
|
||||
|
||||
return !m_drcEngine->IsCancelled();
|
||||
}
|
||||
|
@ -689,8 +689,9 @@ wxString PCBEXPR_UNIT_RESOLVER::GetSupportedUnitsMessage() const
|
||||
|
||||
const std::vector<EDA_UNITS>& PCBEXPR_UNIT_RESOLVER::GetSupportedUnitsTypes() const
|
||||
{
|
||||
static const std::vector<EDA_UNITS> pcbUnits = { EDA_UNITS::MILS, EDA_UNITS::MM, EDA_UNITS::INCH,
|
||||
EDA_UNITS::FS, EDA_UNITS::PS, EDA_UNITS::DEGREES, EDA_UNITS::PERCENT };
|
||||
static const std::vector<EDA_UNITS> pcbUnits = { EDA_UNITS::MILS, EDA_UNITS::MM, EDA_UNITS::INCH,
|
||||
EDA_UNITS::FS, EDA_UNITS::PS, EDA_UNITS::DEGREES,
|
||||
EDA_UNITS::UNSCALED, EDA_UNITS::PERCENT };
|
||||
|
||||
return pcbUnits;
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ BOOST_FIXTURE_TEST_CASE( DRCFanoutChecks, DRC_REGRESSION_TEST_FIXTURE )
|
||||
violations.push_back( *aItem );
|
||||
} );
|
||||
|
||||
bds.m_DRCEngine->RunTests( EDA_UNITS::MILLIMETRES, true, false );
|
||||
bds.m_DRCEngine->RunTests( EDA_UNITS::MM, true, false );
|
||||
|
||||
if( violations.size() == test.second )
|
||||
{
|
||||
@ -86,7 +86,7 @@ BOOST_FIXTURE_TEST_CASE( DRCFanoutChecks, DRC_REGRESSION_TEST_FIXTURE )
|
||||
}
|
||||
else
|
||||
{
|
||||
UNITS_PROVIDER unitsProvider( pcbIUScale, EDA_UNITS::INCHES );
|
||||
UNITS_PROVIDER unitsProvider( pcbIUScale, EDA_UNITS::INCH );
|
||||
|
||||
std::map<KIID, EDA_ITEM*> itemMap;
|
||||
m_board->FillItemMap( itemMap );
|
||||
|
Loading…
x
Reference in New Issue
Block a user