tests/testthat/test-trans_available.R

test_that("available locales returns a character vector", {
  expect_vector(trans_available(),
                ptype = character())
})

test_that("all available locales are returned in any order", {
  expect_setequal(trans_available(), c("en_US", "en_UK", "pl"))
})

Try the translated package in your browser

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

translated documentation built on April 25, 2023, 5:09 p.m.