-
Notifications
You must be signed in to change notification settings - Fork 1k
add check for trunc.cols #4766
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 check for trunc.cols #4766
Conversation
|
It doesn't look like any of the errors had anything to do with the print method, but rather with some other functions (specifically |
Codecov Report
@@ Coverage Diff @@
## master #4766 +/- ##
=======================================
Coverage 99.42% 99.42%
=======================================
Files 73 73
Lines 14437 14439 +2
=======================================
+ Hits 14354 14356 +2
Misses 83 83
Continue to review full report at Codecov.
|
|
Regarding the test coverage, do we want to add checks for this? It is called in so many functions that I'm not sure if you want me to add to those but I can. |
|
a simple test of getting an error for the cases described is warranted. generally if there's an error that wasn't caught by our sweet already that we're fixing, we should add a new test for that error |
|
Added three small checks. |
jangorecki
left a comment
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.
tests look good, just arg validation can be more strict
Simple update to
print.data.table()to add a check fortrunc.colsto be logical. In response to @jangorecki on #4074.