tests/testthat/test-function-isLoaded.R

test_that("isLoaded() and setLoaded() work as expected", {
  
  name <- "abc"
  
  expect_false(isLoaded(name))
  
  setLoaded(name)
  
  expect_true(isLoaded(name))
})
KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.