Add overloads without ParseContext and ErrorGuard - update all tests
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
#include <opm/parser/eclipse/Deck/DeckRecord.hpp>
|
||||
|
||||
#include <opm/parser/eclipse/Parser/Parser.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParseContext.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParserKeyword.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParserRecord.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParserEnums.hpp>
|
||||
@@ -50,7 +49,7 @@ ENKRVD\n\
|
||||
|
||||
BOOST_AUTO_TEST_CASE( ParseMissingRECORD_THrows) {
|
||||
Parser parser;
|
||||
BOOST_CHECK_THROW( parser.parseString( dataMissingRecord, ParseContext() ), std::invalid_argument );
|
||||
BOOST_CHECK_THROW( parser.parseString( dataMissingRecord ), std::invalid_argument );
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +69,7 @@ ENKRVD\n\
|
||||
|
||||
BOOST_AUTO_TEST_CASE( parse_DATAWithDefult_OK ) {
|
||||
Parser parser;
|
||||
auto deck = parser.parseString( data, ParseContext() );
|
||||
auto deck = parser.parseString( data );
|
||||
const auto& keyword = deck.getKeyword( "ENKRVD" );
|
||||
const auto& rec0 = keyword.getRecord(0);
|
||||
const auto& rec1 = keyword.getRecord(1);
|
||||
|
||||
Reference in New Issue
Block a user