tests/testthat/test-list.R

skip_on_cran()

skip_if_not_installed("modeltests")
library(modeltests)

test_that("not all lists can be tidied", {
  nl <- list(a = NULL)

  expect_snapshot(error = TRUE, tidy(nl))
  expect_snapshot(error = TRUE, glance(nl))
})

Try the broom package in your browser

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

broom documentation built on Sept. 13, 2025, 9:09 a.m.