tests/testthat/test-new_tidytable.R

test_that("can create a tidytable from a list", {
  l <- list(x = 1:3, y = c("a", "a", "b"))
  out <- new_tidytable(l)
  expect_named(out, c("x", "y"))
  expect_true(is_tidytable(out))
})
mtfairbanks/gdt documentation built on April 12, 2024, 6:51 p.m.