DayTimeIncrementTest.cpp File Reference

#include <iostream>
#include <iomanip>
#include "StringUtils.hpp"
#include "DayTime.hpp"
#include "icd_200_constants.hpp"

Include dependency graph for DayTimeIncrementTest.cpp:

Include dependency graph

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


Define Documentation

#define TEST_METHOD method,
incCount,
incValue,
diffTolerance   ) 
 

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().


Function Documentation

int main  ) 
 

returns 0 if all tests pass

Definition at line 67 of file DayTimeIncrementTest.cpp.

References DayTime::printf(), and TEST_METHOD.


Generated on Thu Jul 29 03:31:05 2010 for GPS ToolKit Software Library by  doxygen 1.3.9.1