Skip to content

Commit

Permalink
Add test for stanvars class
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes committed Oct 15, 2024
1 parent 934c204 commit ff01e8a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/testthat/test-latent_individual.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,12 @@ test_that("epidist_validate.epidist_latent_individual returns FALSE for incorrec
})

test_that("epidist_stancode.epidist_latent_individual produces valid stanvars", { # nolint: line_length_linter.
expect_equal(1, 1)
epidist_family <- epidist_family(prep_obs)
epidist_formula <- epidist_formula(
prep_obs, epidist_family, formula = brms::bf(mu ~ 1)
)
stancode <- epidist_stancode(
prep_obs, family = epidist_family, formula = epidist_formula
)
expect_s3_class(stancode, "stanvars")
})

0 comments on commit ff01e8a

Please sign in to comment.