Skip to content

Commit

Permalink
Add cron parse specs for gh-56, cc gh-76
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Sep 15, 2022
1 parent e2e9884 commit 4d64542
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions spec/cron_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1145,10 +1145,15 @@ class Fugit::Cron::TimeCursor
[ '* * * 1 *', '* * * 1 *' ], # and that 01 is a month
[ '* * * 01 *', '* * * 1 *' ], #

[ '*/15 * * * *', '0,15,30,45 * * * *' ], # gh-19
[ '/15 * * * *', '0,15,30,45 * * * *' ], #
[ '/15 * * * * *', '0,15,30,45 * * * * *' ], #
[ '/15 /4 * * *', '0,15,30,45 0,4,8,12,16,20 * * *' ], #
[ '*/15 * * * *', '0,15,30,45 * * * *' ], # gh-19
[ '/15 * * * *', '0,15,30,45 * * * *' ], #
[ '/15 * * * * *', '0,15,30,45 * * * * *' ], #
[ '/15 /4 * * *', '0,15,30,45 0,4,8,12,16,20 * * *' ], #
[ '0/15 * * * *', '0,15,30,45 * * * *' ], #

[ '15/30 * * * *', '15,45 * * * *' ], # gh-56
[ '15-40/30 * * * *', '15 * * * *' ], #
[ '0 4/12 * * *', '0 4,16 * * *' ], #

[ '0 18 * * fri-sun UTC', '0 18 * * 0,5,6 UTC' ], # gh-27

Expand Down

0 comments on commit 4d64542

Please sign in to comment.