Skip to content

Commit

Permalink
don't use cli
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed Jan 18, 2025
1 parent 1cb9263 commit c3c84c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-sparsity.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ test_that("id: 1, recipe sparsity: yes, sparsity: high, model support: yes, arg:
local_mocked_bindings(
xgb_train = function(x, ...) {
if (methods::is(x, "sparseMatrix")) {
cli::cli_abort("correct: x is sparse matrix")
stop("correct: x is sparse matrix")
} else {
cli::cli_abort("wrong: x is dense matrix")
stop("wrong: x is dense matrix")
}
},
.package = "parsnip"
Expand Down

0 comments on commit c3c84c2

Please sign in to comment.