tests/testthat/test-to_swap_case.R

context("to_swap_case")

test_that("minimal test",{
  
  expect_equal(
    to_swap_case(c("abCD", "RStudio")),
    c("ABcd", "rsTUDIO")
  )
})

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.