Merge pull request #2117 from joakim-hove/summaryconfig-rhpv

Load summary keyword RHPV_xxx
This commit is contained in:
Joakim Hove 2020-11-17 22:20:46 +01:00 committed by GitHub
commit e2cdd4d5e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@
"deck_names": [
"RRPV_[0-9A-Z][0-9A-Z][0-9A-Z]",
"ROEW_[0-9A-Z][0-9A-Z][0-9A-Z]",
"RHPV_[0-9A-Z][0-9A-Z][0-9A-Z]",
"ROSAT",
"ROIP",
"ROIPL",

View File

@ -1184,13 +1184,17 @@ RRPV_REG
ROEW_REG
/
RHPV_REG
/
)";
const auto& summary_config = createSummary(deck_string);
BOOST_CHECK_EQUAL(summary_config.size(), 12U);
BOOST_CHECK_EQUAL(summary_config.size(), 15U);
BOOST_CHECK(summary_config.hasKeyword("RPR__REG"));
BOOST_CHECK(summary_config.hasKeyword("ROPT_REG"));
BOOST_CHECK(summary_config.hasKeyword("RRPV_REG"));
BOOST_CHECK(summary_config.hasKeyword("ROEW_REG"));
BOOST_CHECK(summary_config.hasKeyword("RHPV_REG"));
BOOST_CHECK(!summary_config.hasKeyword("RPR"));
BOOST_CHECK(!summary_config.match("BPR*"));
BOOST_CHECK(summary_config.match("RPR*"));