Removed EclipseState::hasGrid() method

This commit is contained in:
Joakim Hove
2014-11-10 00:34:22 +01:00
parent cf5a839d97
commit 5f7a7d8083
3 changed files with 1 additions and 95 deletions

View File

@@ -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();