Skip to content

Commit

Permalink
unknown tests
Browse files Browse the repository at this point in the history
  • Loading branch information
topepo committed Oct 30, 2024
1 parent c8491cc commit 2ff5c24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-aaa_unknown.R
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 2ff5c24

Please sign in to comment.