Add tiny test for IsCopperLayerLowerThan
This commit is contained in:
@@ -419,7 +419,7 @@ void COMMON_CONTROL::setTransitions()
|
||||
Go( &COMMON_CONTROL::ShowPlayer, ACTIONS::showSymbolEditor.MakeEvent() );
|
||||
Go( &COMMON_CONTROL::ShowPlayer, ACTIONS::showFootprintBrowser.MakeEvent() );
|
||||
Go( &COMMON_CONTROL::ShowPlayer, ACTIONS::showFootprintEditor.MakeEvent() );
|
||||
Go( &COMMON_CONTROL::Execute, ACTIONS::showCalculatorTools.MakeEvent() );
|
||||
Go( &COMMON_CONTROL::ShowPlayer, ACTIONS::showCalculatorTools.MakeEvent() );
|
||||
Go( &COMMON_CONTROL::ShowProjectManager, ACTIONS::showProjectManager.MakeEvent() );
|
||||
|
||||
Go( &COMMON_CONTROL::ShowHelp, ACTIONS::gettingStarted.MakeEvent() );
|
||||
|
||||
@@ -51,6 +51,13 @@ BOOST_AUTO_TEST_CASE( CopperLayers )
|
||||
BOOST_TEST( !IsCopperLayer( PCB_LAYER_ID::UNSELECTED_LAYER ) );
|
||||
BOOST_TEST( !IsCopperLayer( PCB_LAYER_ID::UNDEFINED_LAYER ) );
|
||||
BOOST_TEST( !IsCopperLayer( PCB_LAYER_ID::F_SilkS ) );
|
||||
|
||||
BOOST_TEST( !IsCopperLayerLowerThan( PCB_LAYER_ID::F_Cu, PCB_LAYER_ID::B_Cu ) );
|
||||
BOOST_TEST( IsCopperLayerLowerThan( PCB_LAYER_ID::In1_Cu, PCB_LAYER_ID::F_Cu ) );
|
||||
BOOST_TEST( IsCopperLayerLowerThan( PCB_LAYER_ID::In2_Cu, PCB_LAYER_ID::F_Cu ) );
|
||||
BOOST_TEST( IsCopperLayerLowerThan( PCB_LAYER_ID::B_Cu, PCB_LAYER_ID::F_Cu ) );
|
||||
BOOST_TEST( !IsCopperLayerLowerThan( PCB_LAYER_ID::In1_Cu, PCB_LAYER_ID::B_Cu ) );
|
||||
BOOST_TEST( !IsCopperLayerLowerThan( PCB_LAYER_ID::B_Cu, PCB_LAYER_ID::B_Cu ) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user