|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for the duration helpers of ah-chronos-utils.H. More...
Go to the source code of this file.
Functions | |
| TEST (AhChronosUtils, ConvertsADurationToEachUnit) | |
| TEST (AhChronosUtils, CountsWholeMinutesHoursAndDays) | |
Tests for the duration helpers of ah-chronos-utils.H.
duration_to_string() exists only where the standard library has std::format: libstdc++ since GCC 13 and libc++ since 17, which defines __cpp_lib_format only since 19. Without it, the header still gives the other helpers, which this program checks too.
Definition in file ah_chronos_utils_test.cc.
| TEST | ( | AhChronosUtils | , |
| ConvertsADurationToEachUnit | |||
| ) |
Definition at line 49 of file ah_chronos_utils_test.cc.
References Aleph::duration_to_microseconds(), Aleph::duration_to_milliseconds(), Aleph::duration_to_nanoseconds(), and Aleph::duration_to_seconds().
| TEST | ( | AhChronosUtils | , |
| CountsWholeMinutesHoursAndDays | |||
| ) |
Definition at line 59 of file ah_chronos_utils_test.cc.
References Aleph::duration_to_days(), Aleph::duration_to_hours(), and Aleph::duration_to_minutes().