tests/testthat/test_generateS3MethodSignature.R

context("generateS3MethodSignature")

o <- generateS3MethodSignature('opfun', 'zorg', c('x_n', 'z_f'))
test_that("generateS3MethodSignature", {
  expect_length(o, 1L)
  expect_equal(o, "\\method{opfun}{zorg}(x_n, z_f)")
})

Try the wyz.code.rdoc package in your browser

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

wyz.code.rdoc documentation built on Oct. 6, 2021, 9:07 a.m.