Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jul 23, 2024
1 parent 80e8955 commit c2a908c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/testthat/test-brms.R
Original file line number Diff line number Diff line change
Expand Up @@ -513,15 +513,6 @@ test_that("find_algorithm", {
)
})

test_that("get_modelmatrix", {
out <- get_modelmatrix(m1)
expect_named(out, c("(Intercept)", "Age", "Base", "Trt1"))
m9 <- insight::download_model("brms_mo2")
skip_if(is.null(m9))
out <- get_modelmatrix(m9)
expect_named(out, c("(Intercept)", "gear"))
})

test_that("get_priors", {
expect_equal(
get_priors(m7),
Expand Down Expand Up @@ -889,3 +880,12 @@ test_that("clean_parameters", {
ignore_attr = TRUE
)
})

test_that("get_modelmatrix", {
out <- get_modelmatrix(m1)
expect_identical(dim(out), c(236L, 4L))
m9 <- insight::download_model("brms_mo2")
skip_if(is.null(m9))
out <- get_modelmatrix(m9)
expect_identical(dim(out), c(32L, 2L))
})

0 comments on commit c2a908c

Please sign in to comment.