Update tests for new behaviour.
This commit is contained in:
parent
33843346b4
commit
a055f11392
@ -246,8 +246,8 @@ BOOST_AUTO_TEST_CASE(GroupCreate) {
|
||||
BOOST_CHECK( g2.addGroup("G2") );
|
||||
|
||||
// The children must be either all wells - or all groups.
|
||||
BOOST_CHECK_THROW(g1.addGroup("G1"), std::logic_error);
|
||||
BOOST_CHECK_THROW(g2.addWell("W1"), std::logic_error);
|
||||
BOOST_CHECK_THROW(g1.addGroup("G1"), std::runtime_error);
|
||||
BOOST_CHECK_THROW(g2.addWell("W1"), std::runtime_error);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(createDeckWithGCONPROD) {
|
||||
|
@ -56,7 +56,7 @@ BOOST_AUTO_TEST_CASE(positional) {
|
||||
BOOST_AUTO_TEST_CASE(exception_init) {
|
||||
const std::string expected { R"(Problem with keyword MXUNSUPP
|
||||
In FILENAME.DAT line 42.
|
||||
Internal error: Runtime Error)" };
|
||||
Runtime Error)" };
|
||||
|
||||
const std::string formatted { Opm::OpmInputError(std::runtime_error("Runtime Error"), location).what() } ;
|
||||
|
||||
@ -66,7 +66,7 @@ Internal error: Runtime Error)" };
|
||||
BOOST_AUTO_TEST_CASE(exception_nest) {
|
||||
const std::string expected { R"(Problem with keyword MXUNSUPP
|
||||
In FILENAME.DAT line 42.
|
||||
Internal error: Runtime Error)" };
|
||||
Runtime Error)" };
|
||||
|
||||
try {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user