tests/testthat/test-s3-vctrs_list_of.R

test_that("vctrs_list_of", {
  expect_snapshot({
    construct(vctrs::vec_c(vctrs::list_of(1, 2), vctrs::list_of(FALSE, TRUE)))
    construct(vctrs::vec_c(vctrs::list_of(1, 2), vctrs::list_of(FALSE, TRUE)), opts_vctrs_list_of("list"))
  })
})

Try the constructive package in your browser

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

constructive documentation built on Sept. 11, 2024, 8:32 p.m.