Skip to content

Commit 9028173

Browse files
committed
add one more line to tests
1 parent 22b0d70 commit 9028173

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/testthat/test-helpers-mcmc.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ test_that("prepare_mcmc_array processes non-array input types correctly", {
232232
fit <- stan_glm(mpg ~ wt, data = mtcars, chains = 2, iter = 500, refresh = 0)
233233
a4 <- prepare_mcmc_array(fit)
234234
expect_s3_class(a4, "mcmc_array")
235+
expect_equal(a4, prepare_mcmc_array(as.array(fit)))
235236
expect_equal(dim(a4), c(250, 2, 3))
236237
expect_equal(parameter_names(a4), c("(Intercept)", "wt", "sigma"))
237238

0 commit comments

Comments
 (0)