41 using CASE = std::pair<std::string, std::string>;
43 const std::vector<CASE> cases = {
55 for(
const auto& c : cases )
68 std::vector<std::pair<wxString, wxString>> refs = { { wxS(
"R1" ), wxS(
"_M1" ) }, { wxS(
"R1" ), wxS(
"_M2" ) },
69 { wxS(
"R2" ), wxS(
"_M1" ) }, { wxS(
"R2" ), wxS(
"_M2" ) },
70 { wxS(
"R3" ), wxS(
"_M1" ) }, { wxS(
"R3" ), wxS(
"_M2" ) } };
wxString GetRefDesPrefix(const wxString &aRefDes)
Get the (non-numeric) prefix from a refdes - e.g.
wxString FormatRefDesRanges(const std::vector< wxString > &aReferences, const wxString &aRefDelimiter, const wxString &aRefRangeDelimiter)
Format a sorted list of reference designators, shortening consecutive sequences of three or more refe...
Collection of utility functions for component reference designators (refdes)
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(GetPrefix)
Declare the test suite.
BOOST_TEST_CONTEXT("Test Clearance")