tests/testthat/test-dm_deconstruct.R

test_that("snapshot test", {
  expect_snapshot({
    dm <- dm_nycflights13()
    dm_deconstruct(dm)
  })
})

test_that("non-syntactic names", {
  expect_snapshot({
    dm <- dm(`if` = tibble(a = 1), `a b` = tibble(b = 1))
    dm_deconstruct(dm)
  })
})

Try the dm package in your browser

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

dm documentation built on Nov. 2, 2023, 6:07 p.m.