tests/testthat/test-str_col_names.R

test_that("str_col_names works", {
  expect_equal(
    purrr::map(
      c("Sepal", "Petal", "Length", "Width"),
      ~ str_col_names(iris, .x)
    ),
    list(
      c("Sepal.Length", "Sepal.Width"),
      c("Petal.Length", "Petal.Width"),
      c("Sepal.Length", "Petal.Length"),
      c("Sepal.Width", "Petal.Width")
    )
  )
})
pfc5098/analystrpc documentation built on March 20, 2022, 9:26 a.m.