tests/testthat/test-is-type-utils.R

test_that("test.is_relistable.a_relistable_object.returns_true", {
  expect_true(is_relistable(as.relistable(list(1, 2, 3))))
})

test_that("test.is_relistable.a_list.returns_false", {
  expect_false(is_relistable(list(1, 2, 3)))
})

Try the assertive.types package in your browser

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

assertive.types documentation built on May 1, 2019, 10:31 p.m.