-
Notifications
You must be signed in to change notification settings - Fork 10
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 for R/messages.R
#89
Conversation
@averissimo no rush - can fix merge conflicts when you have a second please |
bc7f327
to
af72bf2
Compare
@bms63 I've resolved the conflicts and integrated some of the changes from PR #88 (via rebase). As such, this PR no longer uses So this PR will either merge to that branch or to |
@@ -135,16 +150,13 @@ label_log <- function(miss_vars, verbose) { | |||
#' @export | |||
var_ord_msg <- function(moved_vars, verbose) { | |||
|
|||
if (moved_vars > 0) { | |||
if (length(moved_vars) > 0) { |
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.
wooo!! what a catch!
Related issues:
(edit) ℹ️ base branch changed to
82-xportr_length-expand_test_suite
Changes description
var_ord_msg()
call that was not checking the length of the vectormessage()
withxportr_logger()
glue
)R/messages.R
filemockery
dependency to Suggests (optional, but nice to have as it allows to cleanup test output by mockingcli_*()
functions)test/testthat/helper-mock_bindings.R
helper files to contain function re-used in test