tests/tests.r

source('framework/testing.r')

test_case('`check_dots_empty`: passing arguments in dots fails', {
  f = function (...) {
    rprofile:::check_dots_empty()
  }

  expect_ok(f())
  expect_error(f(1))
  expect_error(f(x = 1))
})

Try the rprofile package in your browser

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

rprofile documentation built on Nov. 2, 2023, 5:06 p.m.