Fixes by clang-format

This commit is contained in:
github-actions[bot]
2020-06-08 09:09:11 +00:00
committed by Magne Sjaastad
parent 64a719b1f4
commit 6b5f4dddc9
58 changed files with 202 additions and 206 deletions

View File

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