mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 18:01:08 -06:00
f8c5cf389f
* Set column width to 140 * Use c++20 * Remove redundant virtual
22 lines
887 B
C++
22 lines
887 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 PERFORATION_TEST_DATA_DIRECTORY = QString( "%1/RifPerforationIntervalReader/" ).arg( TEST_DATA_DIR );
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
TEST( RifPerforationIntervalReaderTest, SpacesInWellNameHandledSuccessfully )
|
|
{
|
|
std::map<QString, std::vector<RifPerforationInterval>> perforationIntervals = RifPerforationIntervalReader::readPerforationIntervals(
|
|
PERFORATION_TEST_DATA_DIRECTORY + "perforations_with_space_after_well_name.ev" );
|
|
|
|
EXPECT_EQ( size_t( 10 ), perforationIntervals["A1_RI_HZX"].size() );
|
|
}
|