tests/testthat/test-bage_datamod-constructors.R

## 'bage_datamod_outcome_rr3' -------------------------------------------------

test_that("'new_bage_datamod_outcome_rr3' works", {
  x <- new_bage_datamod_outcome_rr3()
  expect_s3_class(x, "bage_datamod_outcome_rr3")
  expect_s3_class(x, "bage_datamod_outcome")
  expect_identical(x$nm, "rr3")
})
  

Try the bage package in your browser

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

bage documentation built on April 3, 2025, 8:53 p.m.