tests/testthat/test-accessors.R

test_that("private works", {
  obj <- ooplah$new()
  expect_identical(private(obj), obj$.__enclos_env__$private)
})

test_that("super works", {
  obj <- ooplah$new()
  expect_identical(super(obj), obj$.__enclos_env__$super)
})

Try the ooplah package in your browser

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

ooplah documentation built on Jan. 21, 2022, 5:07 p.m.