Update tests for new behaviour.

This commit is contained in:
Atgeirr Flø Rasmussen 2023-04-26 12:02:34 +02:00
parent 33843346b4
commit a055f11392
2 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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 {