https://github.com/ElsevierSoftwareX/SOFTX_2019_219
Revision c4827905e7472b84d34ed20771f7a0fc74fccb0e authored by Konrad Werys on 01 November 2019, 10:35:02 UTC, committed by Konrad Werys on 01 November 2019, 10:35:02 UTC
1 parent e1393a3
Tip revision: c4827905e7472b84d34ed20771f7a0fc74fccb0e authored by Konrad Werys on 01 November 2019, 10:35:02 UTC
ci: big changes to the builds v8
ci: big changes to the builds v8
Tip revision: c482790
OxStartPointCalculatorDefault3Dims_test.cpp
/*!
* \file OxStartPointCalculatorDefault3Dims_test.cpp
* \author Konrad Werys
* \date 2018/08/22
*/
#include "gtest/gtest.h"
#include "OxTestData.h"
#include "OxStartPointCalculatorDefault3Dims.h"
TEST(OxStartPointCalculatorDefault3Dims, calculateStartPoint) {
typedef double TYPE;
char filePath [] = "testData/blood.yaml";
Ox::TestData<TYPE> testData(filePath);
int nSamples = testData.getNSamples();
TYPE calculatedStartPoint[3] = {0,0,0};
Ox::StartPointCalculatorDefault3Dims<TYPE> startPointCalculator;
startPointCalculator.setInvTimes(testData.getInvTimesPtr());
startPointCalculator.setSigMag(testData.getSignalMagPtr());
startPointCalculator.setSigns(testData.getSignsPtr());
startPointCalculator.setNSamples(nSamples);
startPointCalculator.setCalculatedStartPoint(calculatedStartPoint);
startPointCalculator.calculateStartPoint();
EXPECT_EQ(calculatedStartPoint[0], 100);
EXPECT_EQ(calculatedStartPoint[1], 200);
EXPECT_EQ(calculatedStartPoint[2], 1000);
}
Computing file changes ...