tests/testthat/test_getAttributeNames.R

context("getAttributeNames")

test_that("getAttributeNames", {
  x = 1:10
  expect_true(is.null(getAttributeNames(x)))

  attr(x, "size") = length(x)
  expect_equal(getAttributeNames(x), c("size"))
})
berndbischl/BBmisc documentation built on Jan. 6, 2023, 12:32 p.m.