tests/testthat/test-extract-hts.R

test_that("extract_hts works", {
    expect_snapshot(
      error = TRUE,
      extract_hts(y ~ x)
    )

    expect_snapshot(
      error = TRUE,
      extract_hts(y ~ x + z)
    )

    expect_snapshot(
      extract_hts(y ~ x + z + hts(group))
    )

    expect_snapshot(
      extract_hts(y ~ x + z + hts(group, area))
    )
  })
njtierney/yahtsee documentation built on Feb. 5, 2022, 8:25 p.m.