Conversation
| # first on empty df now match head(df, n=1L), #3858 | ||
| df = data.frame(a=integer(), b=integer()) | ||
| test(2108.11, first(df), df, notOutput="xts") | ||
| test(2108.12, tail(df), df, notOutput="xts") |
There was a problem hiding this comment.
this tail(df) was actually a mistake in old unit test, it was now amended to last(df) as it should be in the first place
Codecov Report
@@ Coverage Diff @@
## master #4065 +/- ##
==========================================
+ Coverage 99.4% 99.41% +<.01%
==========================================
Files 72 72
Lines 13728 13756 +28
==========================================
+ Hits 13647 13675 +28
Misses 81 81
Continue to review full report at Codecov.
|
|
Is there a smaller solution than +165 -35 ? |
|
net 101 of that is in tests though right? |
|
I don't think we can rework the logic to save some lines. As @MichaelChirico noticed, a lot of those lines are tests. Verbosity takes some extra lines too, but it is useful for testing. |
|
But why are so many new tests needed? It's just |
|
These tests are newly added, they are likely to overlap to existing test, but they test for verbose output, so they are more accurate and will detect more changes in future. Functions are simple but integration to xts complicates a lot. |
|
If we want to have simple functions then as I proposed above we could provide an option to bypass checks for xts compatibility. IMO it make sense to make a new PR for that and in this one only fix regression in method dispatch. |
|
@jangorecki seems to be just failing one GLCI job (dev-cran-lin) with: |
closes #4053