Skip to content

Commit

Permalink
Reduce message matched against
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludvig committed Oct 12, 2022
1 parent 292b423 commit 6b756fb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/testthat/test_cross_validate.R
Original file line number Diff line number Diff line change
Expand Up @@ -2437,8 +2437,7 @@ test_that("the expected errors are thrown by cross_validate()", {
REML = FALSE, verbose = FALSE,
positive = 1
),
"The `models` argument of `cross_validate()` is deprecated as of cvms 1.0.0.
Please use the `formulas` argument instead.",
"The `models` argument of `cross_validate()` is deprecated",
fixed = TRUE
)
expect_warning(cross_validate(dat,
Expand All @@ -2447,8 +2446,7 @@ Please use the `formulas` argument instead.",
REML = FALSE, model_verbose = FALSE,
positive = 1
),
"The `model_verbose` argument of `cross_validate()` is deprecated as of cvms 1.0.0.
Please use the `verbose` argument instead.",
"The `model_verbose` argument of `cross_validate()` is deprecated",
fixed = TRUE
)

Expand Down Expand Up @@ -3547,7 +3545,7 @@ test_that("varying number of folds in repeated cv with cross_validate()", {
row.names = NULL,
stringsAsFactors = FALSE
)

expect_equal(out1, out2, check.attributes = FALSE, tolerance = 1e-3, ignore_attr = TRUE)
}

Expand Down

0 comments on commit 6b756fb

Please sign in to comment.