Skip to content

Commit

Permalink
Use cmdstanr for Laplace test
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes committed Nov 13, 2024
1 parent 188b370 commit f1379b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testthat/test-diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ test_that("epidist_diagnostics gives an error when passed model fit using the La
skip_on_cran()
set.seed(1)
prep_obs <- as_latent_individual(sim_obs)
fit_laplace <- epidist(data = prep_obs, seed = 1, algorithm = "laplace")
fit_laplace <- epidist(
data = prep_obs, seed = 1, algorithm = "laplace", backend = "cmdstanr"
)
expect_error(epidist_diagnostics(fit_laplace))
})

0 comments on commit f1379b3

Please sign in to comment.