Skip to content

Commit

Permalink
Fix Fugit::Nat "zero dark forty", gh-107
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Aug 17, 2024
1 parent 0c7b0b2 commit 4d62047
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fugit/nat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module Parser include Raabro
%w[ zero ] + one_to_nine +
%w[ ten eleven twelve thirteen fourteen fifteen sixteen seventeen
eighteen nineteen ] +
%w[ twenty thirty fourty fifty ]
%w[ twenty thirty forty fifty ]
.collect { |a|
([ nil ] + one_to_nine)
.collect { |b| [ a, b ].compact.join('-') } }
Expand Down
3 changes: 2 additions & 1 deletion spec/nat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@
'every year at 20:10' => '10 20 1 1 *',

'every day at zero dark twenty' => '20 0 * * *',
'every day at zero dark forty' => '40 0 * * *',
'every day at oh dark forty' => '40 0 * * *',
'every day at one dark fifty' => '50 1 * * *',
#'every day at oh dark fourty' => '40 0 * * *',
'every day at noon' => '0 12 * * *',
'every day at midnight' => '0 0 * * *',

Expand Down

0 comments on commit 4d62047

Please sign in to comment.