From c7ed874362a1d9ad7acbd7f14915e383a7d5d945 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 28 Mar 2017 20:19:28 -0500 Subject: New date range tests are simple, won't catch Feb 29 in non-leap-year (or April 31 in any year). Some normalization allowed, exclusions are just what http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html says. --- tests/date.test | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests') diff --git a/tests/date.test b/tests/date.test index 213174ee..d59d7fcf 100644 --- a/tests/date.test +++ b/tests/date.test @@ -21,6 +21,3 @@ testing "-d 111014312015.30" "TZ=UTC date -d 111014312015.30 2>&1" "Sun Nov 10 1 # Accidentally given a Unix time, we should trivially reject that. testing "Unix time missing @" "TZ=UTC date 1438053157 2>/dev/null || echo no" \ "no\n" "" "" -# But some invalid dates are more subtle, like Febuary 29th in a non-leap year. -testing "Feb 29th" "TZ=UTC date 022900001975 2>/dev/null || echo no" \ - "no\n" "" "" -- cgit v1.2.3