tests/testthat/test_zzz.R

context("zzz")

test_that("test .i18_config", {
  expect_type(.i18_config, "list")
  expect_type(.i18_config$cultural_date_format, "character")
})

test_that("test get_i18n_config", {
  expect_type(get_i18n_config("cultural_bignumer_mark"), "character")
  expect_error(get_i18n_config("cultural_bignumer_markx"))
})

Try the shiny.i18n package in your browser

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

shiny.i18n documentation built on Jan. 16, 2023, 5:10 p.m.