50 pin.hasDuplicateName =
true;
52 pin.hasDuplicateName =
false;
63 pin.padNumber =
"2/3";
71 const wxString
expected = wxString::Format(
"Net-(U?-%08x-Pad2)",
72 static_cast<unsigned>(
KIID( ref.symbolUuid ).
Hash() & 0xFFFFFFFF ) );
74 ref.symbolUuid =
"symbol-id";
75 ref.reference.clear();
76 ref.referenceWithUnit.clear();
79 pin.padNumber =
pin.shownNumber;
86 std::unique_ptr<SCHEMATIC> schematic;
93 auto* symbol =
static_cast<SCH_SYMBOL*
>( item );
95 if( symbol->GetRef( &
path ) !=
"J1" )
100 if(
pin->GetNumber() ==
"8" )
Base class for any item which can be embedded within the SCHEMATIC container class,...
const wxString & GetShownName() const
wxString GetDefaultNetName(const SCH_SHEET_PATH &aPath, bool aForceNoConnect=false)
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
void LoadSchematic(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< SCHEMATIC > &aSchematic)
Value keys and the key session of the schematic connectivity engine.
wxString RenderPinNetName(const PIN_NAME_FACT &aPin, const PIN_NAME_REFERENCE &aReference, bool aForceNoConnect)
Render a non-power pin name from unescaped values; an absent reference uses the symbol UUID.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_CASE(NamesUseUnitsButPadOnlyNamesDoNot)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_REQUIRE(res.columns()==1)
BOOST_AUTO_TEST_SUITE_END()
VECTOR3I expected(15, 30, 45)