tests/testthat/test-multiple-classes.r

library(magrittr)
source('utils.r')

context( "Additional Classes")
test_that( "Additional Classes", {

  x <- rnorm(5)
  # x %<>% base.tools::append_class( "something")
  x %<>% sticky()

   x %>% class %>% testthat::expect_equal(c('sticky', 'numeric' ) )

})

Try the sticky package in your browser

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

sticky documentation built on April 14, 2020, 6:34 p.m.