Skip to content

Commit

Permalink
Add spec for leap years in yday calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
herwinw committed Jun 29, 2024
1 parent 02ee0aa commit 0ba51c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shared/time/yday.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@
end
end
end

it 'supports leap years' do
@method.call(2016, 2, 29).should == 31 + 29
@method.call(2016, 3, 1).should == 31 + 29 + 1
end
end

0 comments on commit 0ba51c7

Please sign in to comment.