tests/testthat/test-function_params.R

test_that("function_params works as expected", {
  expect_true(is.na(function_params(arguments = "abcs")))
  expect_type(function_params(arguments = "max_attempts"), "character")
  expect_true(grepl("@param", function_params(arguments = c("max_attempts"))))
  expect_true(grepl("max_attempts", function_params(arguments = c("max_attempts"))))
})

Try the geckor package in your browser

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

geckor documentation built on Nov. 1, 2021, 5:07 p.m.