mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
18 lines
802 B
C++
18 lines
802 B
C++
#include "gtest/gtest.h"
|
|
|
|
#include "RigStimPlanFractureDefinition.h"
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
/// minY/maxY (and minDepth/maxDepth derived from them) must not crash when the StimPlan fracture
|
|
/// definition has no Y samples, e.g. when the "ys" element is missing from the XML file.
|
|
//--------------------------------------------------------------------------------------------------
|
|
TEST( RigStimPlanFractureDefinitionTest, MinMaxYWithEmptyYsDoesNotCrash )
|
|
{
|
|
cvf::ref<RigStimPlanFractureDefinition> fractureData = new RigStimPlanFractureDefinition;
|
|
|
|
EXPECT_EQ( size_t( 0 ), fractureData->yCount() );
|
|
|
|
EXPECT_NO_FATAL_FAILURE( fractureData->minDepth() );
|
|
EXPECT_NO_FATAL_FAILURE( fractureData->maxDepth() );
|
|
}
|