Release 2025.09.0

This commit is contained in:
Magne Sjaastad authored and GitHub committed 2025-09-01 12:38:48 +02:00
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 );
}