tests/testthat/test-path.R

# Fun: path() -------------------------------------------------------------


test_that("path() is working",{
  path <- thaipdf_paths()
  expect_type(path, "list")
})


test_that("before_body() is working", {
  path_bb <- before_body()
  expect_type(path_bb, "character")
  expect_true(fs::file_exists(path_bb))
})

Try the thaipdf package in your browser

Any scripts or data that you put into this service are public.

thaipdf documentation built on April 22, 2022, 9:07 a.m.