119    LIB_ID fpid( wxT( 
"TestLib" ), wxT( 
"TestFootprint" ) );
 
  120    wxString reference = wxT( 
"U3" );
 
  121    wxString value = wxT( 
"TestIC" );
 
  123    std::vector<KIID> kiids;
 
  128    component.
AddNet( wxT( 
"[1,3,5-7]" ), wxT( 
"CONTROL_BUS" ), wxT( 
"output" ), wxT( 
"output" ) );
 
  131    std::vector<int> expectedPins = { 1, 3, 5, 6, 7 };
 
  132    for( 
int pin : expectedPins )
 
  140    std::vector<int> unexpectedPins = { 2, 4, 8 };
 
  141    for( 
int pin : unexpectedPins )
 
 
  185    LIB_ID fpid( wxT( 
"Connector" ), wxT( 
"Tag-Connect_TC2050-IDC-FP_2x05_P1.27mm_Vertical" ) );
 
  186    wxString reference = wxT( 
"R1" );
 
  187    wxString value = wxT( 
"R" );
 
  189    std::vector<KIID> kiids;
 
  195    component.
AddNet( wxT( 
"[1-5]" ), wxT( 
"Net-(R1-Pad1)" ), wxT( 
"passive" ), wxT( 
"passive" ) );
 
  196    component.
AddNet( wxT( 
"[6,7,9-11]" ), wxT( 
"Net-(R1-Pad6)" ), wxT( 
"passive" ), wxT( 
"passive" ) );
 
  202    for( 
unsigned i = 0; i < component.
GetNetCount(); i++ )
 
  212        wxString pinStr = wxString::Format( wxT( 
"%d" ), 
pin );
 
  215        BOOST_CHECK_MESSAGE( net.
IsValid(),
 
  216                            "Pin " + pinStr + 
" should be found in stacked group [1-5]" );
 
  230    std::vector<int> groupTwoPins = { 6, 7, 9, 10, 11 };
 
  231    for( 
int pin : groupTwoPins )
 
  233        wxString pinStr = wxString::Format( wxT( 
"%d" ), 
pin );
 
  236        BOOST_CHECK_MESSAGE( net.
IsValid(),
 
  237                            "Pin " + pinStr + 
" should be found in stacked group [6,7,9-11]" );
 
  252    BOOST_CHECK_MESSAGE( !net8.
IsValid(),
 
  253                        "Pin 8 should NOT be found (not in any stacked group)" );
 
 
BOOST_CHECK_EQUAL(result, "25.4")