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 get next point for single-repetition recurrences #28

Merged

Conversation

benfitzpatrick
Copy link
Contributor

This fixes the case where a recurrence has a single repetition
(i.e. a null interval) and the get_next method is called.

@arjclark, please review.

Tests pass.

@benfitzpatrick benfitzpatrick added bug and removed bug labels Mar 26, 2014
@benfitzpatrick benfitzpatrick added this to the next-release milestone Mar 26, 2014
@benfitzpatrick
Copy link
Contributor Author

(probably a good idea to fix get_prev as well...)

@arjclark
Copy link
Contributor

@benfitzpatrick - Do you want to fix get_prev in this too?

@benfitzpatrick
Copy link
Contributor Author

Yes, I've just added it and I'm running the tests before I push it up.

@arjclark
Copy link
Contributor

@benfitzpatrick - should a test have been added to capture the correct behaviour?

@benfitzpatrick
Copy link
Contributor Author

Done.

@arjclark
Copy link
Contributor

Looks good to me. No problems from the test script.

arjclark added a commit that referenced this pull request Mar 28, 2014
…nterval

Fix get next point for single-repetition recurrences
@arjclark arjclark merged commit c1ee478 into metomi:master Mar 28, 2014
@benfitzpatrick benfitzpatrick deleted the fix-next-recurrence-null-interval branch April 2, 2014 13:27
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.

2 participants