tests/testthat/test-ellipsis.R

context("ellipsis")

test_that("ellipsis", {
  expect_equal(ellipsis(letters[1:3]), "a, b, c")
  expect_equal(ellipsis(letters), "a, b, c, d, e, f, ... (26 total)")
})

Try the enc package in your browser

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

enc documentation built on Dec. 30, 2019, 1:06 a.m.