tests/testthat/test-mutate_expecvar.R

test_that('measure_sets passed as attribute in results', {
  expect_identical(
    attr(
      mutate_expecvar(
        mortexp |> dplyr::mutate(NEW_RT = runif(nrow(mortexp))),
        new_expected_rates = NEW_RT,
        amount_scalar = FACE_AMOUNT
      ),
      'measure_sets'
    ),
    guess_measure_sets(mortexp)
  )
})

Try the expstudy package in your browser

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

expstudy documentation built on May 29, 2024, 4:05 a.m.