MRPT
2.0.4
|
#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 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |