|
LRAUV
revA
|
Unit Tests for class Timestamp. More...
#include <Timestamp_Test.h>


Public Member Functions | |
| void | testConstructorNoArguments (void) |
Tests:
| |
| void | testConstructorStringArg (void) |
| void | testConstructorDoubleArg (void) |
| void | testConstructorCopyArg (void) |
Constructor with copy param tests
| |
| void | testCopyOperator (void) |
| Copy operator. More... | |
| void | testSetOperatorOne (void) |
| Set operator. More... | |
| void | testSetOperatorTwo (void) |
| void | testInPlaceAdditionToTimespan (void) |
In-place addition operator to timespan Tests:
| |
| void | testInPlaceSubtractionByTimespan (void) |
In-place subtraction operator to timespan Tests:
| |
| void | testAdditionAndSubtraction (void) |
| Standard addition/subtraction functions. More... | |
| void | testInquality (void) |
| Inequality operator. More... | |
| void | testSleepNow (void) |
| Test the sleepTill function. More... | |
| void | testNow (void) |
| void | testWholeUnits (void) |
| Test whole units. More... | |
| void | testToString (void) |
|
inline |
Standard addition/subtraction functions.
Tests for each:
References TIMESPAN_FUDGE().
|
inline |
Constructor with copy param tests
asDouble == asDouble
References Timestamp::asDouble().
|
inline |
References Timestamp::asDouble().
|
inline |
Tests:
Expect asDouble() == 0
References Timestamp::asDouble(), and Timestamp::NOT_SET_TIME.
|
inline |
References Timestamp::asDouble().
|
inline |
Copy operator.
Test:
|
inline |
In-place addition operator to timespan Tests:
Sum objects A+=B. Verify (A+B).asDouble() == (A.asDouble + B.asDouble )
References Timestamp::asDouble(), DOUBLE_FUDGE, and TIMESPAN_FUDGE().
|
inline |
In-place subtraction operator to timespan Tests:
Subtract objects A-=B. Verify (A-B).asDouble() == (A.asDouble - B.asDouble )
References Timestamp::asDouble(), DOUBLE_FUDGE, and TIMESPAN_FUDGE().
|
inline |
Inequality operator.
Tests:
|
inline |
References Timestamp::Now().
|
inline |
Set operator.
Test:
References Timestamp::asDouble().
|
inline |
References Timestamp::asDouble().
|
inline |
Test the sleepTill function.
References Timespan::Milliseconds(), Timestamp::Now(), and Timestamp::sleepTill().
|
inline |
References Timestamp::asTimeT(), Timestamp::Now(), and Timestamp::toString().
|
inline |
Test whole units.
References Timespan::Hours(), Timespan::Milliseconds(), Timespan::Minutes(), Timespan::Seconds(), and TIMESPAN_FUDGE().