tests/testthat/test-check_dots_empty0.R

test_that("empty dots", {
  expect_snapshot_error(fracture(1, "test"))
  expect_snapshot_error(fracture(1, z = 20))
  expect_snapshot_error(fracture(1, "test", z = letters))
  expect_snapshot_error(fracture(1, list(1:10)))
  expect_snapshot_error(fracture(1, z = c(letters, 20)))
  expect_snapshot_error(fracture(1, list(1:10), z =c(letters, 20)))
})

Try the fracture package in your browser

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

fracture documentation built on May 21, 2022, 9:05 a.m.