tests/testthat/test-deduped_map.R

test_that("deduped_map warns for deprecation, but works", {
  x <- list("ABC", "ABC")
  expect_warning(deduped_map(x, tolower), "deprecated")
  expect_equal(
    suppressWarnings(deduped_map(x, tolower)),
    deduped(lapply)(x, tolower)
  )
})

Try the deduped package in your browser

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

deduped documentation built on Nov. 7, 2023, 5:06 p.m.