testDeltaT.cpp   testDeltaT.cpp 
skipping to change at line 95 skipping to change at line 95
while(data.count() >= 3) while(data.count() >= 3)
{ {
int year = data.takeFirst().toInt(); int year = data.takeFirst().toInt();
int yout, mout, dout; int yout, mout, dout;
double JD; double JD;
double expectedResult = data.takeFirst().toDouble(); double expectedResult = data.takeFirst().toDouble();
double acceptableError = data.takeFirst().toDouble(); double acceptableError = data.takeFirst().toDouble();
StelUtils::getJDFromDate(&JD, year, 1, 1, 0, 0, 0); StelUtils::getJDFromDate(&JD, year, 1, 1, 0, 0, 0);
double result = StelUtils::getDeltaTByEspenakMeeus(JD); double result = StelUtils::getDeltaTByEspenakMeeus(JD);
double actualError = std::abs(expectedResult) - std::abs(res ult); double actualError = qAbs(expectedResult) - qAbs(result);
StelUtils::getDateFromJulianDay(JD, &yout, &mout, &dout); StelUtils::getDateFromJulianDay(JD, &yout, &mout, &dout);
QVERIFY2(actualError <= acceptableError, QString("date=%2 ye ar=%3 result=%4 error=%5 acceptable=%6") QVERIFY2(actualError <= acceptableError, QString("date=%2 ye ar=%3 result=%4 error=%5 acceptable=%6")
.arg(QString("%1-%2- %3 00:00:00").arg(yout).arg(mout).arg(dout)) .arg(QString("%1-%2- %3 00:00:00").arg(yout).arg(mout).arg(dout))
.arg(year) .arg(year)
.arg(result) .arg(result)
.arg(actualError) .arg(actualError)
.arg(acceptableError ) .arg(acceptableError )
.toUtf8()); .toUtf8());
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/