swh:1:snp:e6d42e6731ce66e3c09de07ac49964c03139e990
Tip revision: 23801a03e63804d9d099c644e2c2fe4945d6d06b authored by Konrad Werys on 30 July 2019, 11:59:42 UTC
fix: codecov reports
fix: codecov reports
Tip revision: 23801a0
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);
}