tests/testthat/test-iface-class.R

test_that("list output sensible", {
  
  tmp = as.list(i_diamonds, flatten = TRUE)
  testthat::expect_equal(tmp$columns[[1]]$name, "carat")
  testthat::expect_equal(tmp$columns[[1]]$type, "numeric")
  testthat::expect_equal(tmp$has_default, FALSE)
  
})

Try the interfacer package in your browser

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

interfacer documentation built on April 4, 2025, 6:13 a.m.