tests/testthat/test-to_random_case.R

test_that("random_case", {
  expect_equal(
    {suppressWarnings(RNGversion("3.1")); set.seed(123); to_random_case("almost RANDOM")},
    "AlMosT raNdOm"
  )
})

Try the snakecase package in your browser

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

snakecase documentation built on Aug. 28, 2023, 1:07 a.m.