Skip to content

Commit

Permalink
Updated factor tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicChr committed Aug 19, 2024
1 parent 28d263a commit 8ee46e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-factors.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ test_that("factors", {
# Used and unused levels
fct <- factor_(airquality$Ozone, levels = c(NA, 10:100), na_exclude = FALSE)
expect_identical(
used_levels(fct),
levels_used(fct),
intersect(levels(fct), airquality$Ozone)
)
expect_identical(
unused_levels(fct),
levels_unused(fct),
setdiff(levels(fct), airquality$Ozone)
)
expect_identical(
Expand Down

0 comments on commit 8ee46e7

Please sign in to comment.