Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ah_chronos_utils_test.cc File Reference

Tests for the duration helpers of ah-chronos-utils.H. More...

#include <gtest/gtest.h>
#include <ah-chronos-utils.H>
#include <chrono>
Include dependency graph for ah_chronos_utils_test.cc:

Go to the source code of this file.

Functions

 TEST (AhChronosUtils, ConvertsADurationToEachUnit)
 
 TEST (AhChronosUtils, CountsWholeMinutesHoursAndDays)
 

Detailed Description

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.

Function Documentation

◆ TEST() [1/2]

TEST ( AhChronosUtils  ,
ConvertsADurationToEachUnit   
)

◆ TEST() [2/2]

TEST ( AhChronosUtils  ,
CountsWholeMinutesHoursAndDays   
)