MRPT
1.9.9
|
#include <gtest/gtest.h>
#include <mrpt/core/Clock.h>
#include <mrpt/system/datetime.h>
#include <thread>
Go to the source code of this file.
Functions | |
TEST (DateTime, dateTimeVsClock) | |
TEST (DateTime, time_t_forth_back) | |
TEST (DateTime, fixed_date_check) | |
TEST (DateTime, double_to_from) | |
TEST (DateTime, timestampAdd) | |
TEST | ( | DateTime | , |
dateTimeVsClock | |||
) |
Definition at line 16 of file datetime_unittest.cpp.
References EXPECT_GT(), EXPECT_LT(), mrpt::system::getCurrentTime(), and mrpt::Clock::now().
TEST | ( | DateTime | , |
time_t_forth_back | |||
) |
Definition at line 30 of file datetime_unittest.cpp.
References EXPECT_NEAR(), mrpt::system::time_tToTimestamp(), and mrpt::system::timestampTotime_t().
TEST | ( | DateTime | , |
fixed_date_check | |||
) |
Definition at line 46 of file datetime_unittest.cpp.
References mrpt::system::dateTimeToString(), EXPECT_EQ(), EXPECT_NEAR(), and mrpt::system::timestampTotime_t().
TEST | ( | DateTime | , |
double_to_from | |||
) |
Definition at line 57 of file datetime_unittest.cpp.
References EXPECT_NEAR(), mrpt::Clock::fromDouble(), mrpt::system::now(), and mrpt::system::timestampToDouble().
TEST | ( | DateTime | , |
timestampAdd | |||
) |
Definition at line 67 of file datetime_unittest.cpp.
References EXPECT_NEAR(), mrpt::system::now(), mrpt::system::timestampAdd(), and mrpt::system::timestampToDouble().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |