17 lines
366 B
C++
17 lines
366 B
C++
#define _CRT_SECURE_NO_WARNINGS
|
|
#include "InternalTimegm.h"
|
|
|
|
#include <doctest/doctest.h>
|
|
|
|
#include <ctime>
|
|
|
|
using namespace CesiumAsync;
|
|
|
|
TEST_CASE("Test custom timegm() method") {
|
|
SUBCASE("test current time") {
|
|
std::time_t currentTime = std::time(nullptr);
|
|
std::tm* gmt = std::gmtime(¤tTime);
|
|
REQUIRE(internalTimegm(gmt) == currentTime);
|
|
}
|
|
}
|