mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added unit test to Testing menu
Launch of unit tests (gtests) is also possible from command line parameter "unittest"
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "../RimWellLogExtractionCurveImpl.h"
|
||||
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
TEST(RimWellLogExtractionCurveImplTest, Dummy)
|
||||
{
|
||||
std::vector<double> values;
|
||||
values.push_back(0.0);
|
||||
values.push_back(1.0);
|
||||
values.push_back(1.0);
|
||||
|
||||
std::vector< std::pair<size_t, size_t> > valuesIntervals;
|
||||
RimWellLogExtractionCurveImpl::validValuesIntervals(values, valuesIntervals);
|
||||
|
||||
EXPECT_EQ(1, valuesIntervals.size());
|
||||
}
|
||||
Reference in New Issue
Block a user