tests/testthat/test-print.R

test_that("format_items", {
  cases <- list(
    list(c("1", "2", "3"), "`1`, `2` and `3`"),
    list("1", "`1`"),
    list(c("1", "2"), "`1` and `2`")
  )
  for (c in cases) expect_equal(format_items(c[[1]]), c[[2]])
})

Try the pkgdepends package in your browser

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

pkgdepends documentation built on Nov. 10, 2023, 5:06 p.m.