Parse summary keyword ROEW_xxx

This commit is contained in:
Joakim Hove 2020-11-16 07:12:59 +01:00
parent c3b6da7bc3
commit ed5ed62203
2 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,7 @@
"comment": "Tracer keywords where the 2nd letter is a 'T' should be compounded with the tracer name",
"deck_names": [
"RRPV_[0-9A-Z][0-9A-Z][0-9A-Z]",
"ROEW_[0-9A-Z][0-9A-Z][0-9A-Z]",
"ROSAT",
"ROIP",
"ROIPL",

View File

@ -1181,12 +1181,16 @@ ROPT_REG
RRPV_REG
/
ROEW_REG
/
)";
const auto& summary_config = createSummary(deck_string);
BOOST_CHECK_EQUAL(summary_config.size(), 9U);
BOOST_CHECK_EQUAL(summary_config.size(), 12U);
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("RPR"));
BOOST_CHECK(!summary_config.match("BPR*"));
BOOST_CHECK(summary_config.match("RPR*"));