tests/testthat/test-camelCase.R

test_that("toCamel recursively renamed", {
  x1 <- list(a_b = 1, c_d = list(e_f = 2))
  x2 <- list(aB = 1, cD = list(eF = 2))

  expect_equal(toCamel(x1), x2)
})

test_that("unnamed objects left as is", {
  x <- 1:5
  expect_null(names(toCamel(x)))
})

Try the bigrquery package in your browser

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

bigrquery documentation built on April 20, 2023, 5:14 p.m.