1
0
mirror of https://github.com/lammertb/libhttp.git synced 2026-01-03 16:02:30 +03:00

Fix some issues in new unit tests

This commit is contained in:
bel
2016-05-15 19:17:50 +02:00
parent 243e8e8cdb
commit 3fcfbd7d8b
2 changed files with 8 additions and 4 deletions

View File

@@ -620,7 +620,8 @@ START_TEST(test_parse_date_string)
gmt_time_string(date, 1, NULL);
ck_assert_str_eq(date, "");
gmt_time_string(date, 6, NULL);
ck_assert_str_eq(date, "Tue, ");
ck_assert_str_eq(date,
"Thu, "); /* part of "Thu, 01 Jan 1970 00:00:00 GMT" */
gmt_time_string(date, sizeof(date), NULL);
ck_assert_str_eq(date, "Thu, 01 Jan 1970 00:00:00 GMT");