mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7494 Summary Plot: Lumped completions short names are wrong
Replace tabs in summary quantity name with space
This commit is contained in:
@@ -41,3 +41,19 @@ TEST( RiaStdStringToolsTest, EditDistance )
|
||||
EXPECT_EQ( 3, RiaStdStringTools::computeEditDistance( "Saturday", "Sunday" ) );
|
||||
EXPECT_EQ( 3, RiaStdStringTools::computeEditDistance( "Sunday", "Saturday" ) );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
TEST( RiaStdStringToolsTest, TrimStrings )
|
||||
{
|
||||
// Test replace of tabs with space
|
||||
{
|
||||
std::string text = "test\t\tnext word";
|
||||
|
||||
replace( text.begin(), text.end(), '\t', ' ' );
|
||||
|
||||
std::string expectedText = "test next word";
|
||||
EXPECT_EQ( text, expectedText );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user