From 4d62047dde71a95e37a3241295368ed3129f128b Mon Sep 17 00:00:00 2001 From: John Mettraux Date: Sat, 17 Aug 2024 18:10:20 +0900 Subject: [PATCH] Fix Fugit::Nat "zero dark forty", gh-107 --- lib/fugit/nat.rb | 2 +- spec/nat_spec.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/fugit/nat.rb b/lib/fugit/nat.rb index e11563e..400e6fe 100644 --- a/lib/fugit/nat.rb +++ b/lib/fugit/nat.rb @@ -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('-') } } diff --git a/spec/nat_spec.rb b/spec/nat_spec.rb index a7c2c50..c09f651 100644 --- a/spec/nat_spec.rb +++ b/spec/nat_spec.rb @@ -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 * * *',