tests/testthat/test-colwise-funs.R

test_that("as_fun_list() uses rlang auto-naming", {
  nms <- names(as_fun_list(list(min, max), env()))

  # Just check they are labellised as literals enclosed in brackets to
  # insulate from upstream changes
  expect_true(all(grepl("^<", nms)))
})
hadley/dplyr documentation built on Nov. 6, 2024, 4:48 p.m.