-
Notifications
You must be signed in to change notification settings - Fork 995
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 tests of forder NA/NaN behavior #3409
Conversation
…s (ported to issue tracker)
Codecov Report
@@ Coverage Diff @@
## master #3409 +/- ##
=======================================
Coverage 95.12% 95.12%
=======================================
Files 65 65
Lines 12127 12127
=======================================
Hits 11536 11536
Misses 591 591 Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #3409 +/- ##
=======================================
Coverage 95.12% 95.12%
=======================================
Files 65 65
Lines 12127 12127
=======================================
Hits 11536 11536
Misses 591 591 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those new tests, they weren't just dput(forder())
right?
They were 😬 |
So just please examine if returned values are expected ones. Such methodology of adding tests does tests only that returned values will not change over time but not if they are correct. It happens few times to me that I pushed incorrect tests like that. |
Thanks @jangorecki. I actually think current behavior is inconsistent:
If |
I renamed to WIP so it won't be yet merged, lets first agree on expected output. |
Great discussion. I think of the ordering of NA and NaN as different to the ordering of the finite numbers: if |
Also, all the
TODO
s here are now pulled into #2572, so removing them from the tests file (where they're less visible)