mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6481 Summary Plot: Detect cumulative fluid components
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "RifEclipseSummaryAddress.h"
|
||||
|
||||
#include <QString>
|
||||
#include <string>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -293,3 +294,32 @@ TEST( RifEclipseSummaryAddressTest, TestEclipseAddressRegToRegParsing )
|
||||
EXPECT_EQ( 456, addr.regionNumber2() );
|
||||
EXPECT_TRUE( !addr.isErrorResult() );
|
||||
}
|
||||
|
||||
TEST( RifEclipseSummaryAddressTest, TestQuantityNameManipulations )
|
||||
{
|
||||
{
|
||||
auto s = RifEclipseSummaryAddress::baseQuantityName( "FOPT" );
|
||||
EXPECT_EQ( "FOPT", s.toStdString() );
|
||||
}
|
||||
|
||||
{
|
||||
auto s = RifEclipseSummaryAddress::baseQuantityName( "FOPT_1" );
|
||||
EXPECT_EQ( "FOPT", s.toStdString() );
|
||||
}
|
||||
|
||||
{
|
||||
auto s = RifEclipseSummaryAddress::baseQuantityName( "FOPR" );
|
||||
EXPECT_EQ( "FOPR", s.toStdString() );
|
||||
}
|
||||
|
||||
{
|
||||
auto s = RifEclipseSummaryAddress::baseQuantityName( "FOPR_1" );
|
||||
EXPECT_EQ( "FOPR", s.toStdString() );
|
||||
}
|
||||
|
||||
{
|
||||
// https://github.com/OPM/ResInsight/issues/6481
|
||||
auto s = RifEclipseSummaryAddress::baseQuantityName( "FCMIT_1" );
|
||||
EXPECT_EQ( "FCMIT", s.toStdString() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user