tests/testthat/test-make_cols_snake_case.R

test_that("make_cols_snake_case() removes spaces and lowercases", {
  expect_equal(object =
                 make_cols_snake_case(x_data =
                                        data.frame("Space  Col" = c(1,2,3),
                                                   check.names = FALSE)),
               expected = data.frame(space_col = c(1,2,3)))
})

## TODO left off here with tests
aftonsteps/rstardew documentation built on Oct. 11, 2021, 1:35 a.m.