mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-28 16:10:24 -05:00
Release 2025.09.0
This commit is contained in:
1 parent
c33402f5ea
commit
917136fec8
1053 files changed
+61952
-11833
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "RimTools.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
TEST( RimToolsTest, ReplacePathPattern )
|
||||
{
|
||||
QString previousProjectPath = "C:/path/to/projectFileFolder";
|
||||
|
||||
QString realization = "realization-*/MY_CASE-*";
|
||||
|
||||
QString originalPattern = "C:/path/to/" + realization;
|
||||
QString newProjectPath = "/mnt/new/path/to/projectFileFolder";
|
||||
QString expectedPattern = "/mnt/new/path/to/" + realization;
|
||||
|
||||
QString resultPattern = RimTools::relocatePathPattern( originalPattern, newProjectPath, previousProjectPath );
|
||||
EXPECT_EQ( resultPattern, expectedPattern );
|
||||
}
|
||||
Reference in new issue
Block a user