Implementation (not finished) of wells_equal, well_controls_equal, and tests. To build a WellsManager test for old and new parser

Conflicts:
	CMakeLists_files.cmake
This commit is contained in:
Kristian Flikka
2013-12-18 15:06:38 +01:00
committed by Joakim Hove
parent 2a68bb0341
commit e4a7a33598
5 changed files with 198 additions and 8 deletions

View File

@@ -203,3 +203,29 @@ BOOST_AUTO_TEST_CASE(Copy)
}
}
}
BOOST_AUTO_TEST_CASE(Equals_WellsEqual_ReturnsTrue) {
const int nphases = 2;
const int nwells = 2;
const int nperfs = 2;
std::shared_ptr<Wells> W1(create_wells(nphases, nwells, nperfs),
destroy_wells);
std::shared_ptr<Wells> W2(create_wells(nphases, nwells, nperfs),
destroy_wells);
BOOST_CHECK(wells_equal(W1.get(), W2.get()));
}
BOOST_AUTO_TEST_CASE(Equals_WellsDiffer_ReturnsFalse) {
const int nphases = 2;
const int nperfs = 2;
std::shared_ptr<Wells> W1(create_wells(nphases, 2, nperfs),
destroy_wells);
std::shared_ptr<Wells> W2(create_wells(nphases, 3, nperfs),
destroy_wells);
BOOST_CHECK(!wells_equal(W1.get(), W2.get()));
}