aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-03-28 20:19:28 -0500
committerRob Landley <rob@landley.net>2017-03-28 20:19:28 -0500
commitc7ed874362a1d9ad7acbd7f14915e383a7d5d945 (patch)
tree2c66ffaba4c1278372a23660e559a5c7e78ccfb4 /tests
parent05e4ba445d2fb08152ebe5cfcf686c22af8a8862 (diff)
downloadtoybox-c7ed874362a1d9ad7acbd7f14915e383a7d5d945.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/date.test3
1 files changed, 0 insertions, 3 deletions
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" "" ""