Skip to content

Commit

Permalink
rephrase the tested warning expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
gerkovink committed Oct 5, 2023
1 parent 42bcf52 commit aa2f538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-ampute.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ test_that("function works around unusual arguments", {
# when data is categorical and mech != mcar, warning is expected
expect_warning(
ampute(data = nasty.data),
"Data is made numeric because the calculation of weights requires numeric data"
"Data is made numeric internally, because the calculation of weights requires numeric data"
)
# when data is categorical and mech = mcar, function can continue
expect_warning(ampute(data = nasty.data, mech = "MCAR"), NA)
Expand Down

0 comments on commit aa2f538

Please sign in to comment.