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)