tests/testthat/test-new-pillar-type.R

test_that("can format new_pillar_type()", {
  expect_equal(
    format(new_pillar_type(1:3)),
    format_full_pillar_type(1:3)
  )
  expect_equal(
    format(new_pillar_type(list(1, 2:3))),
    format_full_pillar_type(list(1, 2:3))
  )
})
hadley/colformat documentation built on March 9, 2024, 4:58 a.m.