mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Cotire : Fix duplicate global variables
This commit is contained in:
@@ -9,14 +9,14 @@
|
||||
#include <numeric>
|
||||
|
||||
|
||||
static const QString TEST_DATA_DIRECTORY = QString("%1/RifElementPropertyTableReader/").arg(TEST_DATA_DIR);
|
||||
static const QString ELEM_PROP_TEST_DATA_DIRECTORY = QString("%1/RifElementPropertyTableReader/").arg(TEST_DATA_DIR);
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
TEST(RicElementPropertyTableReaderTest, BasicUsage)
|
||||
{
|
||||
RifElementPropertyMetadata metadata = RifElementPropertyTableReader::readMetadata(TEST_DATA_DIRECTORY + "ELASTIC_TABLE.inp");
|
||||
RifElementPropertyMetadata metadata = RifElementPropertyTableReader::readMetadata(ELEM_PROP_TEST_DATA_DIRECTORY + "ELASTIC_TABLE.inp");
|
||||
|
||||
RifElementPropertyTable table;
|
||||
RifElementPropertyTableReader::readData(&metadata, &table);
|
||||
@@ -40,7 +40,7 @@ TEST(RicElementPropertyTableReaderTest, ParseFailed)
|
||||
{
|
||||
try
|
||||
{
|
||||
RifElementPropertyMetadata metadata = RifElementPropertyTableReader::readMetadata(TEST_DATA_DIRECTORY + "ELASTIC_TABLE_error.inp");
|
||||
RifElementPropertyMetadata metadata = RifElementPropertyTableReader::readMetadata(ELEM_PROP_TEST_DATA_DIRECTORY + "ELASTIC_TABLE_error.inp");
|
||||
|
||||
RifElementPropertyTable table;
|
||||
RifElementPropertyTableReader::readData(&metadata, &table);
|
||||
|
||||
Reference in New Issue
Block a user