diff options
Diffstat (limited to 'src/test/test-date.c')
-rw-r--r-- | src/test/test-date.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/test-date.c b/src/test/test-date.c index a8d3f1e083..b77598c81d 100644 --- a/src/test/test-date.c +++ b/src/test/test-date.c @@ -95,6 +95,16 @@ int main(int argc, char *argv[]) { test_one_noutc("@1395716396"); test_should_parse("today UTC"); test_should_fail("today UTC UTC"); + test_should_parse("1970-1-1 UTC"); + test_should_fail("1969-1-1 UTC"); +#if SIZEOF_TIME_T == 8 + test_should_parse("9999-12-30 23:59:59 UTC"); + test_should_fail("9999-12-31 00:00:00 UTC"); + test_should_fail("10000-01-01 00:00:00 UTC"); +#elif SIZEOF_TIME_T == 4 + test_should_parse("2038-01-19 03:14:07 UTC"); + test_should_fail( "2038-01-19 03:14:08 UTC"); +#endif return 0; } |