tests/testthat/test-aims_expose_attributes.R

test_that("Correct structure", {
  expect_is(aims_expose_attributes("weather"), "list")
  expect_is(aims_expose_attributes("temp_loggers"), "list")
  expect_error(aims_expose_attributes("string"))
  expect_error(aims_expose_attributes(10))
  expect_error(aims_expose_attributes(FALSE))
  expect_error(aims_expose_attributes(NA))
  expect_error(aims_expose_attributes(NULL))
})
ropensci/dataaimsr documentation built on July 2, 2023, 3:58 a.m.