tests/testthat/test-unfold.R

test_that("unfold() works", {
  expect_snapshot(climate_mel |> face_temporal() |> unfold(long, lat))
  expect_snapshot(climate_mel |> face_temporal() |> unfold(dplyr::starts_with("l")))
  expect_snapshot(climate_mel |> unfold(), error = TRUE)
  expect_snapshot(climate_mel |> face_temporal() |> make_temporal_tsibble() |> unfold(long, lat))
})
huizezhang-sherry/cubble documentation built on Oct. 15, 2024, 8:12 a.m.