115 LIB_ID fpid( wxT(
"TestLib" ), wxT(
"TestFootprint" ) );
116 wxString reference = wxT(
"U3" );
117 wxString value = wxT(
"TestIC" );
119 std::vector<KIID> kiids;
124 component.
AddNet( wxT(
"[1,3,5-7]" ), wxT(
"CONTROL_BUS" ), wxT(
"output" ), wxT(
"output" ) );
127 std::vector<int> expectedPins = { 1, 3, 5, 6, 7 };
128 for(
int pin : expectedPins )
136 std::vector<int> unexpectedPins = { 2, 4, 8 };
137 for(
int pin : unexpectedPins )
181 LIB_ID fpid( wxT(
"Connector" ), wxT(
"Tag-Connect_TC2050-IDC-FP_2x05_P1.27mm_Vertical" ) );
182 wxString reference = wxT(
"R1" );
183 wxString value = wxT(
"R" );
185 std::vector<KIID> kiids;
191 component.
AddNet( wxT(
"[1-5]" ), wxT(
"Net-(R1-Pad1)" ), wxT(
"passive" ), wxT(
"passive" ) );
192 component.
AddNet( wxT(
"[6,7,9-11]" ), wxT(
"Net-(R1-Pad6)" ), wxT(
"passive" ), wxT(
"passive" ) );
198 for(
unsigned i = 0; i < component.
GetNetCount(); i++ )
208 wxString pinStr = wxString::Format( wxT(
"%d" ),
pin );
212 "Pin " + pinStr +
" should be found in stacked group [1-5]" );
226 std::vector<int> groupTwoPins = { 6, 7, 9, 10, 11 };
227 for(
int pin : groupTwoPins )
229 wxString pinStr = wxString::Format( wxT(
"%d" ),
pin );
233 "Pin " + pinStr +
" should be found in stacked group [6,7,9-11]" );
249 "Pin 8 should NOT be found (not in any stacked group)" );
BOOST_CHECK_EQUAL(result, "25.4")