tests/testthat/test-distribute.R

test_that("distribute works", {
  cvap_block <- cvap_distribute(cvap, de_block)
  expect_s3_class(cvap_block, 'data.frame')
  expect_equal(floor(sum(cvap_block$cvap)), 710270)
})

Try the cvap package in your browser

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

cvap documentation built on July 9, 2023, 7:27 p.m.