tests/testthat/test-is_s3.R

context("test-is_s3")

test_that("works with internal and regular generics", {
  expect_true(is_s3_generic("sum"))
  expect_true(is_s3_generic("[["))
  expect_true(is_s3_generic("mean"))
})

Try the sloop package in your browser

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

sloop documentation built on May 1, 2019, 10:30 p.m.