C++ Utilities  4.9.1
Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
Public Member Functions | List of all members
ChronoTests Class Reference

The ChronoTests class tests classes and methods of the ChronoUtilities namespace. More...

Inheritance diagram for ChronoTests:
[legend]
Collaboration diagram for ChronoTests:
[legend]

Public Member Functions

void setUp ()
 
void tearDown ()
 
void testDateTime ()
 Tests most important DateTime features. More...
 
void testTimeSpan ()
 Tests most important TimeSpan features. More...
 
void testOperators ()
 Tests operators of DateTime / TimeSpan. More...
 
void testHashing ()
 Tests hashing DateTime / TimeSpan by using in a set. More...
 

Detailed Description

The ChronoTests class tests classes and methods of the ChronoUtilities namespace.

Remarks
Before comitting any changes to this test, run with different timezones to prevent mistakes like timezone-dependent checks. (Eg. set environment variable TZ to different values like 'UTC' or 'America/Los_Angeles'.)

Definition at line 27 of file chronotests.cpp.

Member Function Documentation

◆ setUp()

void ChronoTests::setUp ( )
inline

Definition at line 36 of file chronotests.cpp.

◆ tearDown()

void ChronoTests::tearDown ( )
inline

Definition at line 39 of file chronotests.cpp.

◆ testDateTime()

void ChronoTests::testDateTime ( )

Tests most important DateTime features.

Definition at line 54 of file chronotests.cpp.

◆ testHashing()

void ChronoTests::testHashing ( )

Tests hashing DateTime / TimeSpan by using in a set.

Definition at line 151 of file chronotests.cpp.

◆ testOperators()

void ChronoTests::testOperators ( )

Tests operators of DateTime / TimeSpan.

Definition at line 135 of file chronotests.cpp.

◆ testTimeSpan()

void ChronoTests::testTimeSpan ( )

Tests most important TimeSpan features.

Definition at line 104 of file chronotests.cpp.


The documentation for this class was generated from the following file: