38 {
LSET( {
F_Cu,
F_Fab } ),
"00000000_00000000_00000008_00000001",
39 "0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|"
40 "0000_0000|0000_0000|0000_0000|0000_1000|0000_0000|0000_0000|0000_0000|0000_0001" },
42 "0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|"
43 "0000_0000|0000_0000|0000_0000|0010_0000|0100_0000|0000_0000|0000_1000|0000_0000" }
64#define TEST_LAYER_NAME(layer_id, expected_name) \
65 BOOST_CHECK_EQUAL(LSET::Name(layer_id), wxString(expected_name))
95 for (
int i = 1; i <= 300; i++)
97 wxString layerName = wxString::Format(
"In%d.Cu", i);
106 for (
int i = 1; i <= 300; i++)
108 wxString layerName = wxString::Format(
"User.%d", i);
117 std::vector<std::pair<wxString, PCB_LAYER_ID>> layerTests = {
141 for (
const auto&
test : layerTests)
143 wxString layerName =
test.first;
153 wxString expected_name = wxString::Format(
"User.%d", (i -
Rescue) / 2 );
163 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)
BOOST_AUTO_TEST_CASE(FmtHex)
std::string expectedFmtBin
std::string expectedFmtHex
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
static const std::vector< TYPE_TO_EXTS > type_to_ext_cases
BOOST_AUTO_TEST_SUITE_END()