42 {
LSET( {
F_Cu,
F_Fab } ),
"00000000_00000000_00000008_00000001",
43 "0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|"
44 "0000_0000|0000_0000|0000_0000|0000_1000|0000_0000|0000_0000|0000_0000|0000_0001" },
46 "0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|"
47 "0000_0000|0000_0000|0000_0000|0010_0000|0100_0000|0000_0000|0000_1000|0000_0000" }
68#define TEST_LAYER_NAME(layer_id, expected_name) \
69 BOOST_CHECK_EQUAL(LSET::Name(layer_id), wxString(expected_name))
99 for (
int i = 1; i <= 300; i++)
101 wxString layerName = wxString::Format(
"In%d.Cu", i);
110 for (
int i = 1; i <= 300; i++)
112 wxString layerName = wxString::Format(
"User.%d", i);
121 std::vector<std::pair<wxString, PCB_LAYER_ID>> layerTests = {
145 for (
const auto&
test : layerTests)
147 wxString layerName =
test.first;
157 wxString expected_name = wxString::Format(
"User.%d", (i -
Rescue) / 2 );
167 wxString expected_name = wxString::Format(
"In%d.Cu", (i -
B_Cu) / 2);
LSET is a set of PCB_LAYER_IDs.
static int NameToLayer(wxString &aName)
Return the layer number from a layer name.
static wxString Name(PCB_LAYER_ID aLayerId)
Return the fixed name association with aLayerId.
PCB_LAYER_ID
A quick note on layer IDs:
#define TEST_LAYER_NAME(layer_id, expected_name)
static const std::vector< LSETS_TO_TEST > type_to_ext_cases
BOOST_AUTO_TEST_CASE(FmtHex)
std::string expectedFmtBin
std::string expectedFmtHex
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK_EQUAL(ret, c.m_exp_result)
BOOST_AUTO_TEST_SUITE_END()