tests/testthat/test-zoo_simulate.R

test_that("`zoo_simulate()` works", {
  x <- zoo_simulate(seed = 1)
  expect_equal(class(x), "zoo")
  expect_equal(attributes(x)$name, "A")
  expect_equal(names(x), c("a", "b", "c", "d", "e"))
})

Try the distantia package in your browser

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

distantia documentation built on April 4, 2025, 5:42 a.m.