mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
#3213 Observed data import. Add categories to vector table. Modify category identification. Update unit test
This commit is contained in:
1 parent
1104c336aa
commit
2e8bf5aafe
8 files changed
+1871
-1833
No files matched your search
@@ -10,14 +10,37 @@ TEST(RiuSummaryVectorDescriptionMap, TestInit)
|
||||
{
|
||||
{
|
||||
std::string s("SRSFC");
|
||||
auto test = RiuSummaryVectorDescriptionMap::instance()->fieldInfo(s);
|
||||
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorInfo(s);
|
||||
|
||||
EXPECT_TRUE(test.category == RifEclipseSummaryAddress::SUMMARY_WELL_SEGMENT);
|
||||
EXPECT_TRUE(test.longName == "Reach brine concentration");
|
||||
}
|
||||
|
||||
{
|
||||
std::string s("SRSFC");
|
||||
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorLongName(s);
|
||||
|
||||
EXPECT_TRUE(test == "Reach brine concentration");
|
||||
}
|
||||
|
||||
{
|
||||
std::string s("does not exist");
|
||||
auto test = RiuSummaryVectorDescriptionMap::instance()->fieldInfo(s);
|
||||
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorInfo(s);
|
||||
|
||||
EXPECT_TRUE(test.category == RifEclipseSummaryAddress::SUMMARY_INVALID);
|
||||
EXPECT_TRUE(test.longName == "");
|
||||
}
|
||||
|
||||
{
|
||||
std::string s("does not exist");
|
||||
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorLongName(s);
|
||||
|
||||
EXPECT_TRUE(test == "");
|
||||
}
|
||||
|
||||
{
|
||||
std::string s("does not exist");
|
||||
auto test = RiuSummaryVectorDescriptionMap::instance()->vectorLongName(s, true);
|
||||
|
||||
EXPECT_TRUE(test == s);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user