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

Add 'on' filter #119

Merged
merged 1 commit into from
Nov 22, 2018
Merged

Add 'on' filter #119

merged 1 commit into from
Nov 22, 2018

Conversation

cruxicheiros
Copy link
Contributor

Adds a new filter to select holidays that happen on a given date.

I've added some unit tests but I'm not sure they are comprehensive, so please check this and let me know what else needs testing and if the existing tests need to be broadened.

Thank you!

Copy link
Member

@stelgenhof stelgenhof left a comment

Choose a reason for hiding this comment

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

I think everything looks good. 👍

The abstract 'AbstractProvider' class contains a method as well that determines whether a given date is a holiday. However, that method only returns a boolean whereas your filter also supports multiple holidays. Maybe I will refactor that AbstractProvider function to use this filter :)

@stelgenhof stelgenhof merged commit 0248b78 into azuyalabs:develop Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants