Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for bug in ordinal date and week additon in timepoint #106

Merged
merged 1 commit into from
Oct 15, 2018

Conversation

lhuggett
Copy link
Contributor

Closes #105. ">" swapped for "<" in relevant cases to prevent day-of-year always being set to the maximum number of days in the year, and week-of-year always being set to the maximum number of weeks in that year.

@codecov-io
Copy link

Codecov Report

Merging #106 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #106      +/-   ##
==========================================
- Coverage   90.22%   90.17%   -0.06%     
==========================================
  Files           7        7              
  Lines        1924     1924              
  Branches      540      540              
==========================================
- Hits         1736     1735       -1     
- Misses        188      189       +1
Impacted Files Coverage Δ
isodatetime/data.py 87.52% <100%> (-0.08%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2cda500...48a9f4e. Read the comment docs.

Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scans right, well done for flushing out this one! Could you add a couple of simple tests...

@oliver-sanders oliver-sanders merged commit 48a9f4e into metomi:master Oct 15, 2018
@lhuggett lhuggett mentioned this pull request Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants