From 2ff5c24a35521bc0f7d52828bbc51ba7d958d77e Mon Sep 17 00:00:00 2001 From: topepo Date: Wed, 30 Oct 2024 15:29:28 -0400 Subject: [PATCH] unknown tests --- tests/testthat/test-aaa_unknown.R | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/testthat/test-aaa_unknown.R b/tests/testthat/test-aaa_unknown.R index 6f73cbd5..ef05e91e 100644 --- a/tests/testthat/test-aaa_unknown.R +++ b/tests/testthat/test-aaa_unknown.R @@ -19,6 +19,12 @@ test_that("has_unknown", { expect_true( has_unknowns(mtry()) ) + expect_false( + is_unknown(NA) + ) + expect_false( + dials:::has_unknowns_val(NA) + ) expect_equal( has_unknowns(list(mtry(), mixture())), c(TRUE, FALSE)