Debian Codegraph @

tests/testthat/test-list.R

raw
1 skip_on_cran()
2
3 skip_if_not_installed("modeltests")
4 library(modeltests)
5
6 test_that("not all lists can be tidied", {
7 nl <- list(a = NULL)
8
9 expect_snapshot(error = TRUE, tidy(nl))
10 expect_snapshot(error = TRUE, glance(nl))
11 })