Trim spaces and avoid spaces in generated address text

* Trim spaces and avoid spaces in generated address text
* Fix unit test
This commit is contained in:
Magne Sjaastad
2023-01-24 11:26:34 +01:00
committed by GitHub
parent 95f3490acd
commit c8dbf3d125
5 changed files with 12 additions and 6 deletions
@@ -993,7 +993,7 @@ TEST( RifKeywordBasedRsmspecParserTest, TestAddressCreation )
EXPECT_TRUE( address.isValid() );
EXPECT_EQ( address.category(), RifEclipseSummaryAddress::SUMMARY_WELL_COMPLETION_LGR );
EXPECT_EQ( address.uiText(), "LCABC:lgrName:wellName:12, 14, 16" );
EXPECT_EQ( address.uiText(), "LCABC:lgrName:wellName:12,14,16" );
}
//--------------------------------------------------------------------------------------------------
@@ -55,7 +55,7 @@ TEST( RiaSummaryAddressAnalyzer, WellCompletions )
auto completionsForB = analyzer.wellCompletions( wellNameB );
EXPECT_EQ( 3u, completionsForB.size() );
std::string tupleToFind = "5, 4, 30";
std::string tupleToFind = "5,4,30";
EXPECT_TRUE( completionsForB.find( tupleToFind ) != completionsForB.end() );
}