28 const std::map<wxString, wxString> names = { { wxS(
"N123" ), wxS(
"Net-(R1-Pad1)" ) },
29 { wxS(
"N456" ), wxS(
"/sheet/SDA" ) } };
33 BOOST_CHECK( *decoded == names );
39 BOOST_CHECK(
empty->empty() );
static bool empty(const wxTextEntryBase *aCtrl)
wxString JoinNetNameMap(const std::map< wxString, wxString > &aNames)
Encode source-to-imported net names as a single property value.
std::optional< std::map< wxString, wxString > > SplitNetNameMap(const wxString &aValue)
Decode a net-name map property value, or nothing when the value is not one.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()