mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-03 20:20:48 -06:00
#3770 Import perforations. Add RifPerforationIntervalReaderTest
This commit is contained in:
parent
1078ccdee6
commit
0083618dd2
@ -52,6 +52,7 @@ ${CMAKE_CURRENT_LIST_DIR}/RiaWeightedGeometricMeanCalculator-Test.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaWeightedHarmonicMeanCalculator-Test.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RiaCellDividingTools-Test.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/Intersect-Test.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RifPerforationIntervalReader-Test.cpp
|
||||
)
|
||||
|
||||
list(APPEND CODE_HEADER_FILES
|
||||
|
@ -0,0 +1,21 @@
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "RiaTestDataDirectory.h"
|
||||
|
||||
#include "RifPerforationIntervalReader.h"
|
||||
|
||||
#include <cmath> // Needed for HUGE_VAL on Linux
|
||||
#include <numeric>
|
||||
|
||||
static const QString TEST_DATA_DIRECTORY = QString("%1/RifPerforationIntervalReader/").arg(TEST_DATA_DIR);
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
TEST(RifPerforationIntervalReaderTest, SpacesInWellNameHandledSuccessfully)
|
||||
{
|
||||
std::map<QString, std::vector<RifPerforationInterval> >
|
||||
perforationIntervals = RifPerforationIntervalReader::readPerforationIntervals(TEST_DATA_DIRECTORY + "perforations_with_space_after_well_name.ev");
|
||||
|
||||
EXPECT_EQ(10, perforationIntervals["A1_RI_HZX"].size());
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
UNITS METRIC
|
||||
WELLNAME A1_RI_HZX
|
||||
"SOH" perforation 2010 2060 0.212 0
|
||||
"SOH" perforation 2080 2130 0.212 0
|
||||
"SOH" perforation 2150 2200 0.212 0
|
||||
"SOH" perforation 2220 2270 0.212 0
|
||||
"SOH" perforation 2290 2340 0.212 0
|
||||
"SOH" perforation 2360 2410 0.212 0
|
||||
"SOH" perforation 2430 2480 0.212 0
|
||||
"SOH" perforation 2500 2550 0.212 0
|
||||
"SOH" perforation 2570 2620 0.212 0
|
||||
"SOH" perforation 2640 2690 0.212 0
|
Loading…
Reference in New Issue
Block a user