10 #include <cppunit/extensions/HelperMacros.h> 19 CPPUNIT_TEST(constructTest);
20 CPPUNIT_TEST(comparisonTest);
22 CPPUNIT_TEST_SUITE_END();
33 void comparisonTest();
46 CPPUNIT_ASSERT(temp.
value() ==
t);
54 CPPUNIT_ASSERT(db.
timeLow() == 0xbeefdead);
55 CPPUNIT_ASSERT(db.
timeHigh() == 0xdeadbeef);
56 CPPUNIT_ASSERT(db.
value() == 0xdeadbeefbeefdead);
65 CPPUNIT_ASSERT(small < med);
66 CPPUNIT_ASSERT(small <= med);
67 CPPUNIT_ASSERT(!(small == med));
68 CPPUNIT_ASSERT(small != med);
69 CPPUNIT_ASSERT(!(small > med));
70 CPPUNIT_ASSERT(!(small >= med));
constexpr std::uint32_t timeLow() const
static constexpr Timestamp endOfTime()
constexpr std::uint32_t timeHigh() const
CPPUNIT_TEST_SUITE_REGISTRATION(testTimestamp)
registration of the test so that the runner can find it
static constexpr Timestamp beginOfTime()
constexpr TimeValue_t value() const
static constexpr Timestamp invalidTimestamp()
std::uint64_t TimeValue_t
const GenericPointer< typename T::ValueType > T2 value