mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
21 lines
845 B
C++
21 lines
845 B
C++
#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());
|
||
|
|
}
|