55    std::vector<APNP_CASE> cases;
 
   57    auto opts = std::make_unique<ARRAY_GRID_OPTIONS>();
 
   60    opts->m_2dArrayNumbering = 
false;
 
   61    opts->m_pri_axis.SetOffset( 1 );
 
   65            "Simple linear, skip some",
 
   68            { 
"2", 
"4", 
"5", 
"6", 
"7" },
 
   72    opts = std::make_unique<ARRAY_GRID_OPTIONS>();
 
   75    opts->m_2dArrayNumbering = 
false;
 
   76    opts->m_pri_axis.SetOffset( 1 );
 
   80            "Simple linear, no footprint",
 
   83            { 
"1", 
"2", 
"3", 
"4", 
"5" },
 
 
   99                             std::vector<wxString> aExpectedNumbers )
 
  101    std::vector<wxString> got_numbers;
 
  103    for( 
unsigned i = 0; i < aExpectedNumbers.size(); ++i )
 
  106    BOOST_CHECK_EQUAL_COLLECTIONS( aExpectedNumbers.begin(), aExpectedNumbers.end(),
 
  107                                   got_numbers.begin(), got_numbers.end() );
 
 
  117            std::unique_ptr<FOOTPRINT> footprint;
 
 
@ NUMBERING_NUMERIC
Arabic numerals: 0,1,2,3,4,5,6,7,8,9,10,11...
 
Simple class that sequentially provides numbers from an ARRAY_OPTIONS object, making sure that they d...
 
wxString GetNextPadNumber()
Get the next available pad name.
 
std::unique_ptr< ARRAY_OPTIONS > m_arr_opts
 
std::vector< wxString > m_expected_numbers
 
std::set< wxString > m_existing_pad_numbers
 
std::vector< APNP_CASE > GetFootprintAPNPCases()
Get Array Pad Name Provider cases when a footprint is looked at to determine what names are available...
 
BOOST_AUTO_TEST_CASE(FootprintCases)
 
void CheckPadNumberProvider(ARRAY_PAD_NUMBER_PROVIDER &aProvider, std::vector< wxString > aExpectedNumbers)
Check that an ARRAY_PAD_NUMBER_PROVIDER provides the right names.
 
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
 
BOOST_AUTO_TEST_SUITE_END()
 
BOOST_TEST_CONTEXT("Test Clearance")