Removed EclipseState::hasGrid() method
This commit is contained in:
@@ -112,24 +112,7 @@ BOOST_AUTO_TEST_CASE(GetPOROTOPBased) {
|
||||
|
||||
}
|
||||
|
||||
static DeckPtr createEmptyDeck() {
|
||||
const char *deckData =
|
||||
"";
|
||||
|
||||
ParserPtr parser(new Parser());
|
||||
return parser->parseString(deckData) ;
|
||||
}
|
||||
|
||||
static DeckPtr createDeckWithoutGrid() {
|
||||
const char *deckData =
|
||||
"PROPS\n"
|
||||
"EQUALS\n"
|
||||
"'PERMX' 1.23 /\n"
|
||||
"/\n";
|
||||
|
||||
ParserPtr parser(new Parser());
|
||||
return parser->parseString(deckData) ;
|
||||
}
|
||||
|
||||
static DeckPtr createDeck() {
|
||||
const char *deckData =
|
||||
@@ -227,22 +210,6 @@ BOOST_AUTO_TEST_CASE(TitleCorrect) {
|
||||
BOOST_CHECK_EQUAL( state.getTitle(), "The title");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(SupportsEmptyDeck) {
|
||||
DeckPtr deck = createEmptyDeck();
|
||||
ParserLogPtr parserLog(new ParserLog);
|
||||
BOOST_CHECK_NO_THROW(EclipseState(deck, parserLog));
|
||||
|
||||
// we need to get a warning because no grid could be instantiated
|
||||
BOOST_CHECK_EQUAL(parserLog->numWarnings(), 1);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(SupportsDeckWithoutGrid) {
|
||||
DeckPtr deck = createDeckWithoutGrid();
|
||||
ParserLogPtr parserLog(new ParserLog);
|
||||
|
||||
// specifying grid properties without a grid is not supported!
|
||||
BOOST_CHECK_THROW(EclipseState(deck, parserLog), std::logic_error);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(IntProperties) {
|
||||
DeckPtr deck = createDeck();
|
||||
|
||||
Reference in New Issue
Block a user