]> gitweb.factorcode.org Git - factor.git/commitdiff
crontab: adding some Feb 29th tests.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 24 Mar 2019 15:34:03 +0000 (08:34 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 24 Mar 2019 15:34:03 +0000 (08:34 -0700)
extra/crontab/crontab-tests.factor

index e329be35acc03d167e0812165ac7c26b8a20520e..e85b638e04d3fdf84e4325e7f26367fdcc73fa7c 100644 (file)
@@ -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