#include <iostream>
#include <iomanip>
#include "StringUtils.hpp"
#include "DayTime.hpp"
#include "icd_200_constants.hpp"
Include dependency graph for DayTimeIncrementTest.cpp:

Go to the source code of this file.
Defines | |
| #define | TEST_METHOD(method, incCount, incValue, diffTolerance) |
Functions | |
| int | main () |
| returns 0 if all tests pass | |
|
|
Value: dtcopy = dtorig; \
totalIncrements=0; \
incCountUse = incCount/2; \
for (long j=0; j<incCountUse; ++j) \
{ \
dtcopy.method(incValue); \
totalIncrements++; \
} \
for (long j=0; j<incCountUse; ++j) \
{ \
dtcopy.method(-incValue); \
totalIncrements++; \
} \
tdiff = dtcopy-dtorig; \
cout << setw(18) << #method; \
cout << setw(18) << totalIncrements; \
cout << setw(22) << setprecision(10) << tdiff; \
cout << setw(21) << setprecision(8) << tdiff * C_GPS_M; \
cout << setw(23) << setprecision(5) << diffTolerance; \
cout << endl; \
cumulativeResult = cumulativeResult && \
( fabs(tdiff)<diffTolerance );
Definition at line 41 of file DayTimeIncrementTest.cpp. Referenced by main(). |
|
|
returns 0 if all tests pass
Definition at line 67 of file DayTimeIncrementTest.cpp. References DayTime::printf(), and TEST_METHOD. |
1.3.9.1