From aa2f538818cd5133470becc05d7bfd75aeb533a2 Mon Sep 17 00:00:00 2001 From: Gerko Vink Date: Thu, 5 Oct 2023 16:37:51 +0200 Subject: [PATCH] rephrase the tested warning expectation --- tests/testthat/test-ampute.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-ampute.R b/tests/testthat/test-ampute.R index 159e794cc..761909ba8 100644 --- a/tests/testthat/test-ampute.R +++ b/tests/testthat/test-ampute.R @@ -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)