From 92bf1786de2a5a582dd6c22fa4ac32cfbc58db7a Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Sun, 24 Mar 2019 08:34:03 -0700 Subject: [PATCH] crontab: adding some Feb 29th tests. --- extra/crontab/crontab-tests.factor | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/extra/crontab/crontab-tests.factor b/extra/crontab/crontab-tests.factor index e329be35ac..e85b638e04 100644 --- a/extra/crontab/crontab-tests.factor +++ b/extra/crontab/crontab-tests.factor @@ -129,3 +129,14 @@ CONSTANT: start-timestamp T{ timestamp "Sun, 21 Apr 2019 00:00:00 -0700" } } [ "@weekly" next-few-times ] unit-test + +! At 00:00 on day-of-month 29 in February. +{ + { + "Sat, 29 Feb 2020 00:00:00 -0700" + "Thu, 29 Feb 2024 00:00:00 -0700" + "Tue, 29 Feb 2028 00:00:00 -0700" + "Sun, 29 Feb 2032 00:00:00 -0700" + "Fri, 29 Feb 2036 00:00:00 -0700" + } +} [ "0 0 29 2 *" next-few-times ] unit-test