tests/testthat/test-function-noFactorDataFrame.R

test_that("noFactorDataFrame() works", {

  f <- kwb.utils:::noFactorDataFrame

  result <- f()

  expect_is(result, "data.frame")
  
  result <- f(a = "hello")
  
  expect_is(result$a, "character")  
})
KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.