Add wildcard matching of keywords in SummaryConfig

This commit is contained in:
Joakim Hove
2020-09-07 09:59:35 +02:00
parent dad067835c
commit c3f94834c3
3 changed files with 24 additions and 0 deletions

View File

@@ -1053,6 +1053,9 @@ ROPT_REG
const auto& summary_config = createSummary(deck_string);
BOOST_CHECK(summary_config.hasKeyword("RPR__REG"));
BOOST_CHECK(summary_config.hasKeyword("ROPT_REG"));
BOOST_CHECK(!summary_config.hasKeyword("RPR"));
BOOST_CHECK(!summary_config.match("BPR*"));
BOOST_CHECK(summary_config.match("RPR*"));
for (const auto& node : summary_config) {
if (node.category() == EclIO::SummaryNode::Category::Region)
BOOST_CHECK_EQUAL( node.fip_region(), "FIPREG" );