mirror of
https://github.com/szymon-jozef/static-site-generator.git
synced 2026-09-07 20:20:41 +02:00
fixed date error
This commit is contained in:
@@ -34,6 +34,8 @@ TEST_CASE("get_metadata function data correctness test") {
|
||||
datetime.tm_year = 2026 - 1900;
|
||||
datetime.tm_mon = 1 - 1;
|
||||
datetime.tm_mday = 1;
|
||||
datetime.tm_isdst = 0;
|
||||
|
||||
time_t expected_date = mktime(&datetime);
|
||||
std::string expected_title = "Example of a blog post";
|
||||
std::vector<std::string> expected_tags = {"blog", "test", "lalilulelo"};
|
||||
|
||||
Reference in New Issue
Block a user