tests/testthat/test-convert_ellipsis_to_params.R

test_that("convert_ellipsis_to_params works", {
  expect_equal(convert_ellipsis_to_params(toto = 1, tata = 2), list(toto = 1, tata = 2))
  expect_equal(convert_ellipsis_to_params(list(toto = 1, tata = 2)), list(toto = 1, tata = 2))
  expect_error(convert_ellipsis_to_params(toto = 1, 2))
})

Try the hubeau package in your browser

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

hubeau documentation built on June 8, 2025, 11:21 a.m.