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

ceiling_date handles missing value propely #488

Merged
merged 2 commits into from
Oct 27, 2016

Conversation

cderv
Copy link
Contributor

@cderv cderv commented Oct 24, 2016

Proposition to fix #486 .
I added some tests and News bullet point


This change is Reviewable

@@ -385,3 +385,14 @@ test_that("round_date and ceiling_date skip day time gap", {

expect_equal(round_date(x, "hour"), y)
})

test_that("ceiling_date behaves correctly with NA", {
## (bug #486)
Copy link
Member

Choose a reason for hiding this comment

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

Thanks @cderv. As you are on this, could you please add similar tests for round_date and floor_date?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I will do it as soon as possible.

@cderv
Copy link
Contributor Author

cderv commented Oct 24, 2016

I added some tests for round_date and floor_date using just some units not all possibilities.

@vspinu vspinu merged commit fce28cd into tidyverse:master Oct 27, 2016
@vspinu
Copy link
Member

vspinu commented Oct 27, 2016

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ceiling_date doesn't work if NA present
2 participants