Added unit test to Testing menu

Launch of unit tests (gtests) is also possible from command line
parameter "unittest"
This commit is contained in:
Magne Sjaastad
2015-10-05 16:09:51 +02:00
parent f4cfc51de2
commit 63d401b6e6
8 changed files with 206 additions and 0 deletions

View File

@@ -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());
}