mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
#6481 Summary Plot: Detect cumulative fluid components
This commit is contained in:
1 parent
1517c6e32a
commit
c23c735be3
3 files changed
+40
-3
No files matched your search
@@ -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