tests/testthat/test-rel.R

test_that("new_relational() creates relational objects", {
  expect_s3_class(new_relational(list()), "relational")
})

test_that("rel_from_df() creates a data frame", {
  expect_s3_class(rel_from_df(data.frame(a = 1)), "relational")
})

test_that("rel_from_df() fails with bogus input", {
  expect_error(rel_from_df("bogus"))
})

Try the duckplyr package in your browser

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

duckplyr documentation built on Sept. 12, 2024, 9:36 a.m.