Regression test for variable resolution in complex hierarchies.

This commit is contained in:
Jeff Young 2023-11-12 14:30:47 +00:00
parent 03953e80fc
commit 2e311f59a8
2 changed files with 12 additions and 6 deletions

View File

@ -44,8 +44,12 @@ BOOST_FIXTURE_TEST_CASE( ERCHierarchicalSchematics, ERC_REGRESSION_TEST_FIXTURE
// Check not-connected ERC errors
std::vector<std::pair<wxString, int>> tests = { { "issue10926_1", 3 },
{ "issue12814", 0 } };
std::vector<std::pair<wxString, int>> tests =
{
{ "issue10926_1", 3 },
{ "issue12814", 0 },
{ "ERC_dynamic_power_symbol_test", 5 }
};
for( const std::pair<wxString, int>& test : tests )
{
@ -66,6 +70,7 @@ BOOST_FIXTURE_TEST_CASE( ERCHierarchicalSchematics, ERC_REGRESSION_TEST_FIXTURE
tester.TestNoConnectPins();
tester.TestPinToPin();
tester.TestSimilarLabels();
tester.TestTextVars( nullptr );
errors.SetSeverities( RPT_SEVERITY_ERROR | RPT_SEVERITY_WARNING );

View File

@ -48,10 +48,10 @@ BOOST_FIXTURE_TEST_CASE( ERCLabelNotConnected, ERC_REGRESSION_TEST_FIXTURE )
std::vector<std::pair<wxString, int>> tests =
{
{ "erc_pin_not_connected_basic", 2 },
{ "issue7203", 3 },
{ "issue11926", 2 },
{ "issue10430", 8 }
{ "erc_pin_not_connected_basic", 2 },
{ "issue7203", 3 },
{ "issue11926", 2 },
{ "issue10430", 8 }
};
for( const std::pair<wxString, int>& test : tests )
@ -73,6 +73,7 @@ BOOST_FIXTURE_TEST_CASE( ERCLabelNotConnected, ERC_REGRESSION_TEST_FIXTURE )
tester.TestNoConnectPins();
tester.TestPinToPin();
tester.TestSimilarLabels();
tester.TestTextVars( nullptr );
errors.SetSeverities( RPT_SEVERITY_ERROR | RPT_SEVERITY_WARNING );