20#include <boost/test/unit_test.hpp>
31 auto check = [](
const NETCLASS& aNetclass,
const wxString& aName,
bool aExpected )
45 check( first, wxS(
"Power" ),
true );
46 check( first, wxS(
"Powe" ),
false );
47 check( first, wxS(
"PowerX" ),
false );
48 check(
empty, wxEmptyString,
true );
49 check(
empty, wxS(
"Power" ),
false );
52 check( alias, wxS(
"Alias" ),
true );
53 check( alias, wxS(
"Power" ),
false );
56 check( composite, wxS(
"Power,Ground" ),
true );
57 check( composite, wxS(
"Power;Ground" ),
false );
60 check( composite, wxS(
"A,B,Signal" ),
true );
61 check( composite, wxS(
"A,B;Signal" ),
false );
64 check( composite, wxS(
",Power" ),
true );
65 check( composite, wxS(
"Power" ),
false );
A collection of nets and the parameters used to route or test these nets.
const wxString GetName() const
Gets the name of this (maybe aggregate) netclass in a format for internal usage or for export to exte...
void SetConstituentNetclasses(std::vector< NETCLASS * > &&constituents)
Sets the netclasses which make up this netclass.
bool NameEquals(const wxString &aName) const
Compares a name with GetName() without constructing the aggregate name.
static bool empty(const wxTextEntryBase *aCtrl)
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()