47 for(
bool published : {
false,
true } )
58 longest->SetEndPoint( { 500000, 100000 } );
61 shorter->SetEndPoint( { 550000, 100000 } );
63 screen->
Append(
new SCH_LABEL( longest->GetStartPoint(), wxS(
"OP_TEST" ) ) );
64 schematic->RebuildConnectivity();
66 const auto name = longest->GetConnectionName( &schematic->CurrentSheet() );
68 wxString spiceName = *
name;
70 spiceName.MakeLower();
71 schematic->SetOperatingPoint( spiceName, 12.345 );
72 const auto& settings = schematic->Settings();
74 schematic->GetOperatingPoint( *
name, settings.m_OPO_VPrecision, settings.m_OPO_VRange );
79 BOOST_REQUIRE( !schematic->Connectivity().GetNetMap().empty() );
80 BOOST_CHECK( schematic->ConnectionGraph()->GetNetMap().empty() );
83 std::vector<SCH_LINE*> changed;
87 changed.push_back( aWire );
90 BOOST_CHECK( shorter->GetOperatingPoint().IsEmpty() );
95 const auto layers = longest->ViewGetLayers();
101 BOOST_CHECK( lod != std::numeric_limits<double>::max() );
102 BOOST_CHECK_LT( lod, 1.0 );
104 longest->SetOperatingPoint( wxEmptyString );
106 schematic->SetOperatingPoint( spiceName, 0.0 );
110 changed.push_back( aWire );
112 BOOST_CHECK( !longest->GetOperatingPoint().IsEmpty() );
115 longest->SetOperatingPoint( wxEmptyString );
117 schematic->ClearOperatingPoints();
121 changed.push_back( aWire );
123 BOOST_CHECK( longest->GetOperatingPoint().IsEmpty() );
static SCHEMATIC * LoadSchematic(const wxString &aFileName, bool aSetActive, bool aForceDefaultProject, PROJECT *aProject=nullptr, bool aCalculateConnectivity=true, REPORTER *aRootReporter=nullptr)