tests/testthat/test-by_plan.R

test_that("by_plan works", {

  x <- by_plan(letters)
  expect_equal(length(x), 26)

  x <- by_plan(rep(letters, each = 2))
  expect_equal(length(x), 26)

  x <- by_plan(rep(letters, 2))
  expect_equal(length(x), 52)
})

Try the redistmetrics package in your browser

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

redistmetrics documentation built on June 8, 2025, 1:26 p.m.