tests/testthat/test-forcats_import.R

test_that("forcats::as_factor imports into NAMESPACE", {
    x <- as_factor(rep(1:5, 20))
    expect_equal(class(x), "factor")
})
danjdrennan/surveyr documentation built on Dec. 19, 2021, 8:08 p.m.