tests/testthat/test-file-provider.R

test_that("FileProvider works", {
  fp <- FileProvider_en_US$new()
  expect_equal(fp$locale, "en_US")
  expect_type(fp$mime_type(), "character")
  expect_type(fp$file_extension(), "character")
  expect_type(fp$file_name(), "character")
  expect_type(fp$file_path(), "character")
})

Try the charlatan package in your browser

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

charlatan documentation built on Oct. 17, 2024, 9:06 a.m.