tests/testthat/test-toy-data.R

context("toy_data")

test_that("toy data returns behavr object", {
  tdt <- toy_activity_data()

  expect_true("behavr" %in% class(tdt))
  behavr:::check_conform(tdt)

  tdt <- toy_ethoscope_data()
  expect_true("behavr" %in% class(tdt))
  behavr:::check_conform(tdt)

  tdt <- toy_dam_data()
  expect_true("behavr" %in% class(tdt))
  behavr:::check_conform(tdt)
})

Try the behavr package in your browser

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

behavr documentation built on April 4, 2025, 3:30 a.m.