mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3694 Stimplan : Add support for effective width using unit mm
This commit is contained in:
@@ -37,6 +37,13 @@ TEST(RiaEclipseUnitTools, TestConversionToMeter)
|
||||
double destValue = RiaEclipseUnitTools::convertToMeter(sourceValue, unitText);
|
||||
EXPECT_NEAR(1.0, destValue, deltaRange);
|
||||
}
|
||||
|
||||
{
|
||||
double sourceValue = 123.0;
|
||||
QString unitText = "mm";
|
||||
double destValue = RiaEclipseUnitTools::convertToMeter(sourceValue, unitText);
|
||||
EXPECT_NEAR(0.123, destValue, deltaRange);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user