test_RelpermDiagnostics: .DATA file correct, test throws exception for parser errors.

This commit is contained in:
Steinar Foss 2018-01-17 09:50:21 +01:00
parent 57d36b5e51
commit 792b0e7f9d
2 changed files with 1 additions and 2 deletions

View File

@ -91,4 +91,3 @@ SGOF
0.7 0.94 0.000 0
0.85 0.98 0.000 0
0.88 0.984 0.000 0 /
1.00 1.0 0.000 0 /

View File

@ -53,7 +53,7 @@ BOOST_AUTO_TEST_CASE(diagnosis)
Parser parser;
Opm::ParseContext parseContext({{ ParseContext::PARSE_RANDOM_SLASH , InputError::IGNORE },
{ ParseContext::PARSE_UNKNOWN_KEYWORD, InputError::IGNORE},
{ ParseContext::PARSE_EXTRA_RECORDS, InputError::IGNORE}
{ ParseContext::PARSE_EXTRA_RECORDS, InputError::THROW_EXCEPTION}
});
Opm::Deck deck = parser.parseFile("../tests/relpermDiagnostics.DATA", parseContext);
EclipseState eclState(deck, parseContext);