Repository navigation
GH-44674: [R] Fix R CMD check failure with dev testthat - #44675
Merged
Merged
Conversation
Member
Author
|
A note about the patch here: I saw there were a number of ways to fix the issue, including just coercing everything to a vector. However, I thought it was cleaner to just directly use our internal expect_true(all(concat_int == arrow_array(1:5)))
# can be fixed by wrapping it in as.vector
expect_true(as.vector(all(concat_int == arrow_array(1:5))))
# but this seems much cleaner to me
expect_equal(concat_int, arrow_array(1:5)) # <-- this is what I went withCan reviewers please check my assumption that |
nealrichardson
approved these changes
Nov 8, 2024
nealrichardson
left a comment
Member
There was a problem hiding this comment.
Makes sense to me, thank you!
|
After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit ef83052. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them. |
amoeba
added a commit
that referenced
this pull request
Nov 11, 2024
### Rationale for this change Update assertion code in some of the R tests to be compatible with the in-development version of testthat. ### What changes are included in this PR? Updated assertions in tests. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. Fixes #44674. * GitHub Issue: #44674 Authored-by: Bryce Mecum <petridish@gmail.com> Signed-off-by: Bryce Mecum <petridish@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
Update assertion code in some of the R tests to be compatible with the in-development version of testthat.
What changes are included in this PR?
Updated assertions in tests.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.
Fixes #44674.