Skip to content

Commit

Permalink
fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinsimpson committed Mar 6, 2024
1 parent 1284503 commit cbd444f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-samplers.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ test_that("user_draws() works for a GAM", {
})

test_that("user_draws() fails for incorrect matrix of draws", {
expect_silent(drws1 <- generate_draws(m_gam, n = 20, method = "gaussian",
seed = 2))
expect_error(user_draws(m_gam, draws = drws1[, 1:10]),
"Supplied 'draws' doesn't match number of model coefficients.
Number of model coefs: 37
Expand Down

0 comments on commit cbd444f

Please sign in to comment.