tests/testthat/test-zzz.R

test_that("map_if works with function predicates", {
  expect_equal(
    map_if(letters[1:5], function(x) identical(x, "c"), toupper),
    list("a", "b", "C", "d", "e")
  )
})
romainfrancois/decor documentation built on Dec. 14, 2021, 6:36 a.m.