mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixes by clang-format
This commit is contained in:
committed by
Magne Sjaastad
parent
64a719b1f4
commit
6b5f4dddc9
@@ -21,8 +21,8 @@ TEST( RiaInterpolationToolsTest, LinearEmptyData )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
TEST( RiaInterpolationToolsTest, SingleValue )
|
||||
{
|
||||
std::vector<double> x = { 1.0 };
|
||||
std::vector<double> y = { 3.0 };
|
||||
std::vector<double> x = {1.0};
|
||||
std::vector<double> y = {3.0};
|
||||
|
||||
double res = RiaInterpolationTools::linear( x, y, 2.0 );
|
||||
EXPECT_EQ( std::numeric_limits<double>::infinity(), res );
|
||||
@@ -33,8 +33,8 @@ TEST( RiaInterpolationToolsTest, SingleValue )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
TEST( RiaInterpolationToolsTest, ValidInterval )
|
||||
{
|
||||
std::vector<double> x = { 0.0, 1.0 };
|
||||
std::vector<double> y = { 0.0, 2.0 };
|
||||
std::vector<double> x = {0.0, 1.0};
|
||||
std::vector<double> y = {0.0, 2.0};
|
||||
|
||||
double res = RiaInterpolationTools::linear( x, y, 0.5 );
|
||||
EXPECT_DOUBLE_EQ( 1.0, res );
|
||||
@@ -45,8 +45,8 @@ TEST( RiaInterpolationToolsTest, ValidInterval )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
TEST( RiaInterpolationToolsTest, ValidIntervalLastBin )
|
||||
{
|
||||
std::vector<double> x = { 0.0, 1.0, 100.0, 1100.0 };
|
||||
std::vector<double> y = { 0.0, 2.0, 0.0, 2000.0 };
|
||||
std::vector<double> x = {0.0, 1.0, 100.0, 1100.0};
|
||||
std::vector<double> y = {0.0, 2.0, 0.0, 2000.0};
|
||||
|
||||
double res = RiaInterpolationTools::linear( x, y, 600.0 );
|
||||
EXPECT_DOUBLE_EQ( 1000.0, res );
|
||||
@@ -57,8 +57,8 @@ TEST( RiaInterpolationToolsTest, ValidIntervalLastBin )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
TEST( RiaInterpolationToolsTest, ValidIntervalValueTooLow )
|
||||
{
|
||||
std::vector<double> x = { 0.0, 1.0 };
|
||||
std::vector<double> y = { 0.0, 2.0 };
|
||||
std::vector<double> x = {0.0, 1.0};
|
||||
std::vector<double> y = {0.0, 2.0};
|
||||
|
||||
// Outside interval on low side
|
||||
double res = RiaInterpolationTools::linear( x, y, -1.0 );
|
||||
@@ -70,8 +70,8 @@ TEST( RiaInterpolationToolsTest, ValidIntervalValueTooLow )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
TEST( RiaInterpolationToolsTest, ValidIntervalValueTooHigh )
|
||||
{
|
||||
std::vector<double> x = { 0.0, 1.0 };
|
||||
std::vector<double> y = { 0.0, 2.0 };
|
||||
std::vector<double> x = {0.0, 1.0};
|
||||
std::vector<double> y = {0.0, 2.0};
|
||||
|
||||
// Outside interval on high side
|
||||
double res = RiaInterpolationTools::linear( x, y, 100.0 );
|
||||
|
||||
Reference in New Issue
Block a user